Skip to main content

fetch_card_from_url

Function fetch_card_from_url 

Source
pub async fn fetch_card_from_url(url: &str) -> Result<AgentCard, ClientError>
Expand description

Fetches the AgentCard from an absolute URL.

The URL must be a complete http:// or https:// URL pointing directly at the agent card JSON resource. No headers, 30-second budget; fetch_card_from_url_with_options takes both.

Uncached, like resolve_agent_card: every call fetches. For repeated use, a CachingCardResolver caches the card; with_path takes a card that is not at the well-known path.

ยงErrors

Same conditions as resolve_agent_card.