Skip to main content

Module a2a

Module a2a 

Source
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:

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 A2aStreamingRequestHandler trait.
well_known_serve
HTTP serving for the A2A agent-card well-known path.