pub struct AgentCard {
pub name: String,
pub description: String,
pub url: String,
pub version: String,
pub capabilities: Vec<String>,
pub input_modes: Vec<String>,
pub output_modes: Vec<String>,
pub authentication: Option<A2AAuth>,
}Expand description
An agent’s public identity card — its fight card.
Published so other agents can discover capabilities, supported I/O modes, and how to send tasks to this fighter.
Fields§
§name: StringHuman-readable name of the agent.
description: StringDescription of what this agent does.
url: StringThe URL where this agent can be reached.
version: StringSemantic version of the agent.
capabilities: Vec<String>List of capability identifiers (e.g. “code_review”, “web_search”).
input_modes: Vec<String>Supported input modes (e.g. “text”, “json”, “image”).
output_modes: Vec<String>Supported output modes (e.g. “text”, “json”, “markdown”).
authentication: Option<A2AAuth>Optional authentication details for reaching this agent.
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