pub struct AgentCard {Show 14 fields
pub version: String,
pub name: String,
pub description: String,
pub url: String,
pub icon_url: Option<String>,
pub documentation_url: Option<String>,
pub provider: Option<AgentProvider>,
pub preferred_transport: Option<String>,
pub capabilities: AgentCapabilities,
pub default_input_modes: Vec<String>,
pub default_output_modes: Vec<String>,
pub skills: Vec<AgentSkill>,
pub security_schemes: HashMap<String, SecurityScheme>,
pub security: Vec<HashMap<String, Vec<String>>>,
}Expand description
Describes an agent’s capabilities, skills, and metadata, serving as a public profile. See: https://google.github.io/A2A/specification/#agentcard-object-structure
Fields§
§version: StringThe version of the A2A specification this agent adheres to.
name: StringThe agent’s unique name.
description: StringA short description of the agent’s purpose.
url: StringThe URL where the agent can be reached.
icon_url: Option<String>A URL to an icon for the agent.
documentation_url: Option<String>A URL to the agent’s documentation.
provider: Option<AgentProvider>Information about the agent’s provider.
preferred_transport: Option<String>The preferred transport method for communicating with the agent.
capabilities: AgentCapabilitiesThe agent’s capabilities.
default_input_modes: Vec<String>The default input modes the agent accepts.
default_output_modes: Vec<String>The default output modes the agent produces.
skills: Vec<AgentSkill>The skills the agent possesses.
security_schemes: HashMap<String, SecurityScheme>The security schemes supported by the agent.
security: Vec<HashMap<String, Vec<String>>>The security requirements for the 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
Source§impl JsonSchema for AgentCard
impl JsonSchema for AgentCard
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto 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