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§
- Caching
Card Resolver - 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
AgentCardfrom an absolute URL. - resolve_
agent_ card - Fetches the
AgentCardfrom the standard well-known path. - resolve_
agent_ card_ with_ path - Fetches the
AgentCardfrom a custom path.