pub struct AgentCard {
pub protocol_version: String,
pub name: String,
pub description: String,
pub version: String,
pub url: String,
pub provider: Option<AgentProvider>,
pub capabilities: Option<AgentCapabilities>,
pub default_input_modes: Vec<String>,
pub default_output_modes: Vec<String>,
pub skills: Vec<AgentSkill>,
/* private fields */
}Expand description
Agent Card - metadata describing an A2A agent
Agent Cards are used for agent discovery. They are typically served at
/.well-known/agent-card.json and describe the agent’s identity, capabilities,
and security requirements.
Fields§
§protocol_version: StringThe version of the A2A protocol supported
name: StringAgent name
description: StringAgent description
version: StringAgent version
url: StringThe preferred endpoint URL for the agent’s A2A service
provider: Option<AgentProvider>Organization/provider details
capabilities: Option<AgentCapabilities>Features supported by this agent
default_input_modes: Vec<String>Default supported input MIME types
default_output_modes: Vec<String>Default supported output MIME types
skills: Vec<AgentSkill>List of specific skills/capabilities
Implementations§
Source§impl AgentCard
impl AgentCard
Sourcepub fn vtcode_default(url: impl Into<String>) -> Self
pub fn vtcode_default(url: impl Into<String>) -> Self
Create a default VT Code agent card
Sourcepub fn with_provider(self, provider: AgentProvider) -> Self
pub fn with_provider(self, provider: AgentProvider) -> Self
Set the provider
Sourcepub fn with_capabilities(self, capabilities: AgentCapabilities) -> Self
pub fn with_capabilities(self, capabilities: AgentCapabilities) -> Self
Set the capabilities
Sourcepub fn add_skill(self, skill: AgentSkill) -> Self
pub fn add_skill(self, skill: AgentSkill) -> Self
Add a skill
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentCard
impl<'de> Deserialize<'de> for AgentCard
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AgentCard
impl RefUnwindSafe for AgentCard
impl Send for AgentCard
impl Sync for AgentCard
impl Unpin for AgentCard
impl UnsafeUnpin for AgentCard
impl UnwindSafe for AgentCard
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more