Skip to main content

AgentCard

Struct AgentCard 

Source
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: String

The version of the A2A specification this agent adheres to.

§name: String

The agent’s unique name.

§description: String

A short description of the agent’s purpose.

§url: String

The 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: AgentCapabilities

The 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 Debug for AgentCard

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for AgentCard

Source§

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

Source§

fn schema_name() -> Cow<'static, str>

The name of the generated JSON Schema. Read more
Source§

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

Generates a JSON Schema for this type. Read more
Source§

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 more
Source§

impl Serialize for AgentCard

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,