Skip to main content

Module jsonrpc

Module jsonrpc 

Source
Expand description

JSON-RPC 2.0 over HTTP transport implementation.

JsonRpcTransport sends every A2A method call as an HTTP POST to the agent’s single JSON-RPC endpoint URL. Streaming requests include Accept: text/event-stream and the response body is consumed as SSE.

§Connection pooling

The underlying [hyper_util::client::legacy::Client] pools connections across requests. Cloning JsonRpcTransport is cheap — it clones the inner Arc.

Structs§

JsonRpcTransport
JSON-RPC 2.0 transport: HTTP POST to a single endpoint.