A2A JSON-RPC
Communicate with an assistant using the Agent-to-Agent (A2A) Protocol over JSON-RPC 2.0.
This endpoint accepts a JSON-RPC envelope and dispatches based on method.
Supported Methods:
message/send: Send a message and wait for the final Task result.message/stream: Send a message and receive Server-Sent Events (SSE) JSON-RPC responses.tasks/get: Fetch the current state of a Task by ID.tasks/cancel: Request cancellation (currently not supported; returns an error).
LangGraph Mapping:
message.contextIdmaps to LangGraphthread_id.
Notes:
- Only
textanddataparts are supported;fileparts are not. - If
message.contextIdis omitted, a new context is created. - Text parts require the assistant input schema to include a
messagesfield.
POST
Headers
Body
application/json
Response
JSON-RPC response for non-streaming methods. For message/stream, the response is an SSE stream of JSON-RPC envelopes.

