Skip to main content

Module rpc

Module rpc 

Source
Expand description

JSON-RPC 2.0 structures for A2A Protocol

Implements the JSON-RPC 2.0 request/response format used by the A2A protocol, along with A2A-specific RPC method constants.

Structs§

JsonRpcError
JSON-RPC 2.0 Error
JsonRpcRequest
JSON-RPC 2.0 Request
JsonRpcResponse
JSON-RPC 2.0 Response
ListTasksParams
Parameters for tasks/list method
ListTasksResult
Result for tasks/list method
MessageConfiguration
Configuration for message sending
MessageSendParams
Parameters for message/send and message/stream methods
PushNotificationConfig
Push notification configuration
SendStreamingMessageResponse
Base wrapper for streaming message response
TaskIdParams
Parameters for tasks/cancel method
TaskPushNotificationConfig
Configuration for push notification delivery
TaskQueryParams
Parameters for tasks/get method

Enums§

StreamingEvent
Streaming event types (discriminated by ‘type’ field)

Constants§

JSONRPC_VERSION
JSON-RPC 2.0 version constant
METHOD_AGENT_GET_EXTENDED_CARD
Get authenticated extended agent card
METHOD_MESSAGE_SEND
Send a message to initiate or continue a task
METHOD_MESSAGE_STREAM
Send a message and subscribe to real-time updates via SSE
METHOD_TASKS_CANCEL
Request cancellation of a running task
METHOD_TASKS_GET
Retrieve the current state of a task
METHOD_TASKS_LIST
Retrieve a list of tasks with optional filtering
METHOD_TASKS_PUSH_CONFIG_GET
Get push notification configuration for a task
METHOD_TASKS_PUSH_CONFIG_SET
Set push notification configuration for a task
METHOD_TASKS_RESUBSCRIBE
Resubscribe to task updates after connection interruption