Send A2A task Technical Preview; added in 9.2.0
Spaces method and path for this operation:
post /s/{space_id}/api/agent_builder/a2a/{agentId}
Refer to Spaces for more information.
Handle A2A (Agent-to-Agent) task requests. Use this endpoint to process inter-agent communication using JSON-RPC 2.0 protocol.
[Required authorization] Route required privileges: read_onechat.
POST /api/agent_builder/a2a/{agentId}
curl \ --request POST 'https://localhost:5601/api/agent_builder/a2a/{agentId}' \ --header "Authorization: $API_KEY" \ --header "Content-Type: application/json" \ --data '{"id":"task-123","method":"complete","params":{"messages":[{"role":"user","content":"Hello from A2A protocol"}]},"jsonrpc":"2.0"}'
Request example
Example request for A2A Task Endpoint
{ "id": "task-123", "method": "complete", "params": { "messages": [ { "role": "user", "content": "Hello from A2A protocol" } ] }, "jsonrpc": "2.0" }
Response examples (200)
Example response from A2A Task Endpoint with results of task execution
{ "id": "task-123", "result": { "type": "response", "response": { "message": "Hello! How can I help you today?" }, "conversation_id": "conv-456" }, "jsonrpc": "2.0" }