Skip to content

Lesson 2 of 12 · 4 min read

Agent-to-Agent Delegation with A2A

Free lessonReviewed By the AIAgentInterviews editorial teamProduct details checked · What changed
Reading position
In this lesson

TL;DR: Use A2A when the thing you are calling is itself an agent: it decides how to do the work, may take minutes or days, may need to ask a question, and belongs to someone else. It publishes an Agent Card (skills, endpoint, auth); you create a task; you track it by id through states such as working, input required and completed; you receive artifacts. Use MCP for a capability-oriented integration, including remote tools; duration alone does not decide the protocol. A2A standardises the envelope, not the trust: you still decide what to delegate, what data to send and how to verify what comes back.

After this lesson, you should be able to explain A2A's main objects (Agent Card, task, message, artifact), follow a task through its lifecycle, choose between A2A and MCP for an integration, and design the caller's side for long, interrupted and failed tasks.

Before you read

Commit to an answer now. The lesson that follows explains it, and having guessed first, even wrongly, makes the explanation easier to remember.

  1. 1Your procurement agent must get a quote from a supplier's agent, which may need two days and may ask clarifying questions. Why is a synchronous tool call the wrong shape?

The objects

  • Agent Card: a document the remote agent publishes describing who it is, its skills, its endpoint, supported features (streaming, push notifications) and how to authenticate.
  • Task: the unit of delegated work, with an id and a state.
  • Message: a turn between client and remote agent, made of parts (text, files, structured data).
  • Artifact: an output the task produces, such as a quote document or a dataset.

Delivery can be a simple request and response, a stream of updates over Server-Sent Events, or push notifications to a webhook for long tasks.

The task lifecycle

submitted ──▶ working ──▶ completed
                 │ ▲
                 ▼ │
           input-required          (needs an answer)
           auth-required           (needs authorization)
                 │
                 ├──▶ failed       (remote agent could not do it)
                 ├──▶ canceled     (client withdrew it)
                 └──▶ rejected     (remote agent declined it)
A TASK BETWEEN TWO AGENTS
Delegating a quote request with A2A

Procurement agent

your side

Supplier agent

their side

  1. Discover
  2. Procurement agent to Supplier agent

    1GET Agent Card
1/7

1. GET Agent Card

Checked November 2026 against the A2A lifecycle guide: input-required and auth-required are interrupted states, while completed, failed, canceled and rejected are terminal. Terminal tasks do not restart; related follow-up work creates a new interaction. The diagram is a simplified path, and the code below is a deliberately narrow application transition policy, not the complete protocol transition matrix.

ALLOWED = {
    "submitted": {"working", "rejected"},
    "working": {"input-required", "auth-required", "completed", "failed", "canceled"},
    "input-required": {"working", "canceled", "failed"},
    "auth-required": {"working", "canceled", "failed"},
}
TERMINAL = {"completed", "failed", "canceled", "rejected"}

def apply(task, new_state):
    if task["state"] in TERMINAL or new_state not in ALLOWED[task["state"]]:
        raise ValueError(f"{task['state']} -> {new_state} not allowed")
    task["history"].append(new_state)
    task["state"] = new_state
    return task

t = {"id": "task_91", "state": "submitted", "history": []}
for s in ["working", "input-required", "working", "completed"]:
    apply(t, s)
print(t["state"], t["history"].count("working"))  # => completed 2

The caller stores the task id and state durably and validates updates, so a duplicate or out-of-order notification cannot move a finished task back to working.

What version 1.0 settled

A2A reached 1.0.0 on 12 March 2026 (a breaking release) and 1.0.1 on 26 May 2026. Three changes matter for design work more than any field rename.

The protocol is separate from the wire. 1.0 describes the operations (send a message, get a task, list tasks, cancel, subscribe) once, then maps them onto three bindings: JSON-RPC, gRPC and plain HTTP with JSON. An Agent Card lists the interfaces it offers and which binding each one uses, and requests carry an A2A-Version header. You can choose the binding your platform already operates, and a gateway can translate, but the task model is the same in all three.

The Agent Card can be signed. A card may carry JSON Web Signatures over a canonical form of its JSON. That lets a client check that the card it fetched from a well-known URL (/.well-known/agent-card.json) is the one its publisher signed, before trusting the endpoint and auth schemes in it. A signature says who published the card. It says nothing about whether the agent behind it is any good.

Tasks can be listed. tasks/list with filters and pagination arrived in 1.0, which makes reconciliation possible: after an outage, the caller can ask the remote agent which of its tasks exist and in what state, and compare that with its own records instead of guessing.

Extensions are declared in the Agent Card with a URI and a required flag, and a breaking change to an extension needs a new URI. That rule is what lets payment and UI protocols ride on A2A: AP2 and A2UI both define A2A extensions.

Governance, checked November 2026. Google announced A2A in April 2025 and moved it to the Linux Foundation. IBM's Agent Communication Protocol folded into A2A in August 2025, and its repository was archived. In August 2026 A2A joined the Agentic AI Foundation, the Linux Foundation body that also hosts MCP, goose and AGENTS.md. For an engineer, the practical meaning is that the two protocols most teams combine now sit under one neutral home, not with a single vendor.

A2A or MCP?

QuestionMCPA2A
What are you calling?A tool or data sourceAnother agent
Who decides how the work is done?You, through the tool's contractThe remote agent
Can work outlive a request?Yes, with supported task capability or an application handleYes, through task lifecycle
Can it require interaction?Depends on supported elicitation and task capabilitiesInput-required and auth-required states
Does organizational ownership decide?No; tools can be third-partyNo; independent agents can share an organization

Many systems use both: an agent calls its own tools over MCP and delegates to partners' agents over A2A.

What the caller still owns

  • What to send. Only the data the task needs; the remote agent is another party with its own retention.
  • Authorization. Credentials scoped to delegation, declared in the Agent Card's schemes, never your user's broad tokens.
  • Durability. The task id in your workflow state, so a restart can resume tracking instead of re-delegating.
  • Verification. Artifacts are untrusted input: validate them like any tool result.
  • Failure handling. Timeouts, cancellation, and a fallback when the remote agent disappears.

Say it in 30 seconds

"A2A lets one agent delegate to another it does not control. The remote agent publishes an Agent Card with skills, endpoint and auth; the client creates a task, tracks it by id through states such as working, input required and completed, answers questions through messages, and receives artifacts by response, stream or push notification. I choose by capability invocation versus delegated task ownership, rather than latency or company boundary, and on the caller's side I minimise the data sent, scope credentials, store task ids durably, validate artifacts and plan for timeouts and failure."

Check yourself

Answer aloud or on paper before revealing. Producing the explanation unaided is exactly what a panel listens for.

  1. 1What does an Agent Card tell a client?

  2. 2Why should the client validate task state transitions it receives?

  3. 3Why are A2A artifacts treated as untrusted input?

Practise it as an interviewer asks it

From the blog

Course lessons that teach this

Related lessons