> ## Documentation Index
> Fetch the complete documentation index at: https://docs.medera.info/llms.txt
> Use this file to discover all available pages before exploring further.

# A2A Protocol

> Agent-to-agent communication

Agents inside the Care Orchestrator communicate via a JSON-RPC-style envelope. Inbound A2A messages are routed via `POST /api/care-orchestrator/tasks/route`.

```json theme={"system"}
{
  "from_agent_id": "agt_intake",
  "to_agent_id": "agt_triage",
  "context_id": "ctx_abc",
  "message": {
    "role": "assistant",
    "content": "Triage these symptoms.",
    "data": { "screeners": { "phq9": 14 } }
  },
  "auth": { "agent_token": "..." }
}

```

Every A2A call is logged and ties back to a `workflow_id` for trace continuity.
