{ "jsonrpc": "2.0", "result": { "id": "task-456", "status": { "state": "completed", "message": { "role": "agent", "parts": [ { "type": "text", "text": "The A2A (Agent-to-Agent) protocol is a standardized communication protocol developed by Google for enabling structured communication between AI agents. It uses JSON-RPC 2.0 over HTTP/HTTPS and supports features like multi-turn conversations, file uploads, and streaming responses." } ] } }, "contextId": "ctx-abc123", "final": true }, "id": "req-001"}
A2A Protocol Endpoints
message/send
Send synchronous messages to A2A agents and receive immediate responses
{ "jsonrpc": "2.0", "result": { "id": "task-456", "status": { "state": "completed", "message": { "role": "agent", "parts": [ { "type": "text", "text": "The A2A (Agent-to-Agent) protocol is a standardized communication protocol developed by Google for enabling structured communication between AI agents. It uses JSON-RPC 2.0 over HTTP/HTTPS and supports features like multi-turn conversations, file uploads, and streaming responses." } ] } }, "contextId": "ctx-abc123", "final": true }, "id": "req-001"}
The message/send method is the primary way to communicate with A2A agents synchronously. Send a message and receive a complete response in a single HTTP request.
Synchronous Communication: This method blocks until the agent provides a complete response. For streaming responses, use message/stream instead.
{ "jsonrpc": "2.0", "result": { "id": "task-456", "status": { "state": "completed", "message": { "role": "agent", "parts": [ { "type": "text", "text": "The A2A (Agent-to-Agent) protocol is a standardized communication protocol developed by Google for enabling structured communication between AI agents. It uses JSON-RPC 2.0 over HTTP/HTTPS and supports features like multi-turn conversations, file uploads, and streaming responses." } ] } }, "contextId": "ctx-abc123", "final": true }, "id": "req-001"}