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
Documentation Index
Fetch the complete documentation index at: https://docs.langchain.com/llms.txt
Use this file to discover all available pages before exploring further.
Headers
For message/stream, must include text/event-stream. For all other methods, use application/json.
Path Parameters
The ID of the assistant to communicate with
Body
application/json
JSON-RPC version
Available options:
2.0 Request identifier
The method to invoke
Available options:
message/send, message/stream, tasks/get, tasks/cancel Method parameters; shape depends on the method.
- Message Send/Stream Parameters
- Task Get Parameters
- Task Cancel Parameters
Response
JSON-RPC response for non-streaming methods. For message/stream, the response is an SSE stream of JSON-RPC envelopes.

