A2A protocol

Your agents speak the open A2A 1.0 protocol: any compatible agent or platform discovers them through their signed card and gives them tasks.

Updated

On this page

A2A is the open protocol agents from different platforms use to discover each other and work together. Every AgentOS agent speaks version 1.0, in both directions:

Direction What it allows
Toward your agents Another agent or platform gives them tasks, with an API key.
From your agents Your agents delegate to other people's agents, which you register as external agents.

The agent card#

Each agent publishes its card: who it is, what it can do, how to call it, and how it authenticates. AgentOS derives it from the agent's definition and signs it, so whoever reads it can check it's authentic.

In AgentOSAgentsan agentAgent card

Under How to call it you'll find its interface address and its Public card address, each with a copy button. The card also answers at the protocol's usual path, /.well-known/agent-card.json, next to the agent's address.

Give it a task#

With a Chat and act key, send a message with the SendMessage JSON-RPC method:

bash
curl -X POST "<the agent's interface address>" \
  -H "AgentOS-Api-Key: <your key>" \
  -H "A2A-Version: 1.0" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": "1",
    "method": "SendMessage",
    "params": {
      "message": {
        "messageId": "request-0001",
        "role": "ROLE_USER",
        "parts": [{ "text": "Summarize November sales by region." }]
      }
    }
  }'

The response is a task with its status (for example, TASK_STATE_COMPLETED) and the agent's answer in its artifacts. For long jobs, check the task with GetTask, follow its changes through streaming, or get a push notification; CancelTask stops it.

What the agent does for an A2A request shows up in Runs with the “External agent” source, and anything that needs approval waits in Pending approvals.

↑ ↓ to move · Enter to open · Esc to close