pub struct AgentCard {Show 14 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: BTreeMap<String, SecurityScheme>,
pub security_requirements: Vec<SecurityRequirement>,
pub default_input_modes: Vec<String>,
pub default_output_modes: Vec<String>,
pub skills: Vec<AgentSkill>,
pub signatures: Vec<AgentCardSignature>,
pub icon_url: Option<String>,
}Expand description
Agent discovery document served from /.well-known/agent-card.json.
Fields§
§name: StringHuman-readable agent name.
description: StringHuman-readable agent description.
supported_interfaces: Vec<AgentInterface>Ordered list of supported transport bindings.
provider: Option<AgentProvider>Optional agent provider metadata.
version: StringAgent implementation version string.
documentation_url: Option<String>Optional human-readable documentation URL.
capabilities: AgentCapabilitiesCapability flags and advertised extensions.
security_schemes: BTreeMap<String, SecurityScheme>Named security schemes referenced by requirements.
security_requirements: Vec<SecurityRequirement>Security requirements that apply by default.
default_input_modes: Vec<String>Default accepted input modes.
default_output_modes: Vec<String>Default produced output modes.
skills: Vec<AgentSkill>Skills exposed by the agent.
signatures: Vec<AgentCardSignature>Optional signatures over the agent card.
icon_url: Option<String>Optional icon URL for UI presentation.
Implementations§
Source§impl AgentCard
impl AgentCard
Sourcepub fn unsigned_clone(&self) -> Self
pub fn unsigned_clone(&self) -> Self
Return a clone of the card with signature blocks removed.
Sourcepub fn canonical_signing_payload(
&self,
) -> Result<String, AgentCardSignatureError>
pub fn canonical_signing_payload( &self, ) -> Result<String, AgentCardSignatureError>
Canonicalize the unsigned agent card for detached-JWS verification.
Sourcepub fn verify_signatures<F>(
&self,
supported_algorithms: &[&str],
verifier: F,
) -> Result<(), AgentCardSignatureError>
pub fn verify_signatures<F>( &self, supported_algorithms: &[&str], verifier: F, ) -> Result<(), AgentCardSignatureError>
Verify any advertised signature using caller-supplied crypto.
The caller controls key lookup and cryptographic verification. The SDK prepares detached-JWS inputs and filters signatures by supported algorithm identifiers.