Expand description
JSON-RPC 2.0 envelope types.
A2A 0.3.0 uses JSON-RPC 2.0 as its wire protocol. This module provides the
request/response envelope types. Protocol-method-specific parameter and
result types live in crate::params and the individual domain modules.
§Key types
JsonRpcRequest— outbound method call.JsonRpcResponse— inbound response (success or error, untagged union).JsonRpcError— structured error object carried in error responses.JsonRpcVersion— newtype that always serializes/deserializes as"2.0".
Structs§
- Json
RpcError - The error object within a JSON-RPC 2.0 error response.
- Json
RpcError Response - An error JSON-RPC 2.0 response.
- Json
RpcRequest - A JSON-RPC 2.0 request object.
- Json
RpcSuccess Response - A successful JSON-RPC 2.0 response.
- Json
RpcVersion - The JSON-RPC protocol version marker.
Enums§
- Json
RpcResponse - A JSON-RPC 2.0 response: either a success with a
resultor an error with anerrorobject.
Type Aliases§
- Json
RpcId - A JSON-RPC 2.0 request/response identifier.