Expand description
Primary adapters for the A2A protocol.
The A2A spec’s surface on the server side is a well-known path (the agent card) and a JSON-RPC endpoint (the methods), plus a streaming variant of two of the methods. This module is the driving adapter for all three:
well_known_serveserves the agent card on the well-known path.jsonrpc_serveserves the regular (request/response) JSON-RPC endpoint.streaming_serveserves the streaming (SSE) JSON-RPC endpoint.
Feature-gated on a2a (the value objects) AND
http (the axum dep). A consumer who turns on
a2a but not http gets the value objects and
the JSON-RPC method table but not the HTTP
serving — they can implement their own transport
without paying the axum cost.
Modules§
- jsonrpc_
serve - HTTP serving for the A2A JSON-RPC endpoint.
- serve_
agent - The convenience façade for serving an A2A agent.
- streaming_
serve - HTTP serving for the A2A streaming JSON-RPC endpoint.
- streaming_
typed_ dispatch - Per-method typed wrappers around the
streaming
A2aStreamingRequestHandlertrait. - well_
known_ serve - HTTP serving for the A2A agent-card well-known path.