pub struct AgentCard {
pub name: String,
pub description: String,
pub url: Option<String>,
pub version: String,
pub capabilities: AgentCapabilities,
pub authentication: Option<AgentAuthentication>,
pub default_input_modes: Vec<String>,
pub default_output_modes: Vec<String>,
pub skills: Vec<AgentSkillRef>,
pub metadata: BTreeMap<String, Value>,
}Expand description
A2A Agent Card — the discovery document for an agent service.
Served at /.well-known/agent.json per the A2A protocol spec.
Fields§
§name: StringAgent service name.
description: StringHuman-readable description of the agent’s capabilities.
url: Option<String>Service URL endpoint.
version: StringAgent version.
capabilities: AgentCapabilitiesAgent capabilities.
authentication: Option<AgentAuthentication>Authentication configuration.
default_input_modes: Vec<String>Default input content types accepted.
default_output_modes: Vec<String>Default output content types produced.
skills: Vec<AgentSkillRef>Individual skills/agents available in this service.
metadata: BTreeMap<String, Value>Additional metadata.
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 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