Agent2Agent (A2A) Protocol With Working Python Code
Two agents that share no code can still work together, if they share a protocol.
Video #32 ยท AI agents and MCP
Steps in the video
Files
- client_agent.py (27 lines)
- price_agent.py (46 lines)
- run.py (17 lines)
Tested with
Python 3.12.15 | a2a-sdk[http-server]==1.2.3, uvicorn==0.54.0
What this does not show
One made-up price agent and one client on one machine, with no authentication, no HTTPS, no streaming, no input-required tasks and no push notifications. No language model is involved; the answer comes from a small table.
Sources
Learning IT by Example.