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.contextId maps to LangGraph thread_id.Notes:
text and data parts are supported; file parts are not.message.contextId is omitted, a new context is created.messages field.For message/stream, must include text/event-stream. For all other methods, use application/json.
The ID of the assistant to communicate with
JSON-RPC version
2.0 Request identifier
The method to invoke
message/send, message/stream, tasks/get, tasks/cancel Method parameters; shape depends on the method.
JSON-RPC response for non-streaming methods. For message/stream, the response is an SSE stream of JSON-RPC envelopes.