Skip to main content

AuthenticatedExtendedCardResponse

Type Alias AuthenticatedExtendedCardResponse 

Source
pub type AuthenticatedExtendedCardResponse = AgentCard;
Expand description

The full (private) agent card returned by agent/authenticatedExtendedCard.

This is structurally identical to the public AgentCard; the type alias signals intent and may gain additional fields in a future spec revision.

Aliased Type§

pub struct AuthenticatedExtendedCardResponse {
Show 15 fields pub name: String, pub description: String, pub supported_interfaces: Vec<AgentInterface>, pub provider: Option<AgentProvider>, pub version: String, pub documentation_url: Option<String>, pub capabilities: AgentCapabilities, pub security_schemes: Option<HashMap<String, SecurityScheme>>, pub security_requirements: Option<Vec<SecurityRequirement>>, pub default_input_modes: Vec<String>, pub default_output_modes: Vec<String>, pub skills: Vec<AgentSkill>, pub signatures: Option<Vec<AgentCardSignature>>, pub icon_url: Option<String>, pub url: Option<String>,
}

Fields§

§name: String

A human readable name for the agent. Example: “Recipe Agent”

§description: String

A human-readable description of the agent, assisting users and other agents in understanding its purpose. Example: “Agent that helps users with recipes and cooking.”

§supported_interfaces: Vec<AgentInterface>

Ordered list of supported interfaces. The first entry is preferred.

Spec requirement: Must contain at least one element — enforced by validate, not at parse time: ProtoJSON printers omit empty repeated fields, so parsing treats absence as empty and validation reports the real problem instead of a JSON type error.

§provider: Option<AgentProvider>

The service provider of the agent.

§version: String

The version of the agent. Example: “1.0.0”

§documentation_url: Option<String>

A URL providing additional documentation about the agent.

§capabilities: AgentCapabilities

A2A Capability set supported by the agent.

§security_schemes: Option<HashMap<String, SecurityScheme>>

The security scheme details used for authenticating with this agent.

§security_requirements: Option<Vec<SecurityRequirement>>

Security requirements for contacting the agent.

§default_input_modes: Vec<String>

The set of interaction modes that the agent supports across all skills. This can be overridden per skill. Defined as media types.

ProtoJSON printers omit empty repeated fields; absence means empty.

§default_output_modes: Vec<String>

The media types supported as outputs from this agent.

ProtoJSON printers omit empty repeated fields; absence means empty.

§skills: Vec<AgentSkill>

Skills represent the abilities of an agent. It is largely a descriptive concept but represents a more focused set of behaviors that the agent is likely to succeed at.

Spec requirement: Must contain at least one element. Parsing treats absence as empty (ProtoJSON omits empty repeated fields).

§signatures: Option<Vec<AgentCardSignature>>

JSON Web Signatures computed for this AgentCard.

§icon_url: Option<String>

Optional. A URL to an icon for the agent.

§url: Option<String>

Primary URL of the agent — accepted on input, never emitted.

This is the v0.3 top-level URL. The v1.0 lf.a2a.v1 AgentCard has no url field at all; supported_interfaces replaced it. Emitting it made this SDK’s card fail the specification’s own JSON schema — 'url' does not match any of the regexes: … — which is what CARD-EXT-001 reports (see docs/official-tck-findings.md §13).

It is still parsed, because a card published by a v0.3 peer carries it and dropping the field would fail those cards outright. The reference implementation does the same, popping url and folding it into supportedInterfaces.

Read it if you have it; to publish an agent’s address, use supported_interfaces.