
12 episodes, about 51 min 1 view across the series
Topics: Agents Code: abhydesai/a2a-explained-code
A2A Explained
Created by Abhyuday DesaiUpdated , episode 12
How you delegate work to another agent without knowing how it does that work. The idea, the build, and the real world, for viewers who know MCP.
Start with episode 1Part oneThe idea
- 01 Watch
What Is A2A, and Why Isn't It Just MCP?
Another team's agent could be one more tool with a text parameter. What that wrapper would have to invent is the case for a protocol of its own.
- 02 Watch
The Agent Card
How one agent finds another and learns what it can do before any work is exchanged: the card, and the roles around it.
- 03 Watch
The Task
A tool call returns a value. Work sent to an agent comes back as a task: a status that moves, messages, artifacts, and two ids.
- 04 Watch
Talk to Your First Agent
A forty-line client fetches a card, sends one message to an agent we did not write, and prints the task's state and its artifact.
Part twoBuild it
- 05 Watch
Build the Smallest A2A Agent
A model with a price lookup becomes a served agent through the SDK's executor, and the client from Episode 04 needs nothing but its address.
- 06 Watch
A Task Is Not a Return Value
One clause more in the question, and the brief takes more than ten seconds. Two clients watch the task while it runs: one asks again, one is told as it happens.
- 07 Watch
When the Agent Asks Back
The question leaves out the period, so the analyst stops before it starts any work and asks for one. The answer goes back to the task that is already open, and that task finishes the brief.
- 08 Watch
What Goes Over the Wire
A tap between our client and the analyst copies every byte both ways. What crosses is ordinary HTTP with JSON bodies: a task in the reply, and a stream of events that all answer one request.
- 09 Watch
Where A2A Meets MCP
The analyst's price lookup moves behind an MCP server. The card it serves does not change by a byte, both clients run unedited, and one agent ends up using both protocols for different things.
Part threeThe real world
- 10 Watch
One Agent, Many Agents
A briefing agent hands one question to two agents built by different teams. One small piece of code handles both hand-offs; deciding who gets what stays in our program.
- 11 Watch
Delegating Is a Decision
What a hand-off to another agent carries, what serving one exposes, what the card declares about identity, and how auth required hands a permission back to the client.
- 12 Watch
A Task That Outlives the Call
The caller hangs up while our analyst is still working. The task stays on the server, so the client can come back for the brief, or have the analyst call it.