Skip to main content

ExtendedAgentCardResolver

Trait ExtendedAgentCardResolver 

Source
pub trait ExtendedAgentCardResolver: Send + Sync {
    // Required method
    fn resolve(&self, params: &ServiceParams) -> Result<AgentCard, A2AError>;
}
Expand description

Supplies the authenticated extended Agent Card (§12.4, §10.1).

A resolver rather than a stored card because §12.4 has the extended card fetched under a security scheme: which skills an agent reveals can legitimately differ by caller, and ServiceParams is where the caller’s credentials arrive. An agent serving one card to everyone can ignore the argument — DefaultRequestHandler::with_extended_agent_card wraps a plain card for exactly that case.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§