Skip to main content

Module discovery

Module discovery 

Source
Expand description

Agent card discovery with HTTP caching.

A2A agents publish their AgentCard at a well-known URL. This module provides helpers to fetch and parse the card.

The default discovery path is /.well-known/agent.json appended to the agent’s base URL.

Per spec §8.3, the client supports HTTP caching via ETag and If-None-Match / If-Modified-Since conditional request headers.

Structs§

CachingCardResolver
A caching agent card resolver.

Constants§

AGENT_CARD_PATH
The standard well-known path for agent card discovery.

Functions§

fetch_card_from_url
Fetches the AgentCard from an absolute URL.
resolve_agent_card
Fetches the AgentCard from the standard well-known path.
resolve_agent_card_with_path
Fetches the AgentCard from a custom path.