localmTUTS
FollowFollowSubscribe
Short Course · 16 lessons + 1 interview questions · ~137 mins

A2A: The Agent2Agent Protocol

An open protocol for building multi-agent AI systems — where agents discover, delegate, and collaborate across six frameworks and three model providers.

A2AAgent2AgentAI AgentsMulti-Agent SystemsPythonMicrosoft Agent FrameworkGoogle ADKLangGraphCrewAIOpenAI Agents SDKClaude Style AgentsMCP
BeginnerModerateExpert
What You'll Learn

The A2A protocol, end to end

How agents advertise themselves via Agent Cards, the eight-state Task lifecycle, JSON-RPC 2.0 transport, Server-Sent Events for streaming, and the authentication model — the full spec, explained through working code.

Six frameworks, one protocol

Build the same loan validation problem six ways: Microsoft Agent Framework, Google ADK, LangGraph with MCP, CrewAI, OpenAI Agents SDK, and a bare-metal agent loop. Each produces a standards-compliant A2A server — interchangeable at the protocol layer.

A production-grade capstone

A multi-agent loan approval pipeline with six orchestrated agents, AI-driven decisioning, human-in-the-loop escalation, a React approval dashboard, and OpenTelemetry distributed tracing across the full pipeline.

Local-first throughout

GitHub Models Phi-4 (free with a GitHub account), Azure AI Foundry Kimi-K2 and Kimi-K2-Thinking (free tier), and Foundry Local Qwen2.5 Coder (runs on-device). Every lesson runs without surprise API costs.

About This Course

Most agents today work in isolation. They call tools through MCP, fetch data, execute tasks. But give three agents — built with different frameworks by different teams — a shared problem, and you are back to writing custom glue for every pair. The integration count grows with N. A2A removes that ceiling: each agent implements the protocol once, and any two agents that speak A2A can discover and work with each other without any bespoke adapter code.

The protocol is precise about what it standardises. An Agent Card at /.well-known/agent-card.json declares the agent's name, capabilities, skills, and authentication scheme. Tasks move through eight defined states — submitted, working, input-required, auth-required, completed, canceled, failed, and rejected. Messages carry typed Parts (text, data, files). Streaming responses arrive over Server-Sent Events. Authentication (OAuth 2.0, mTLS, or API key) is declared in the card, not negotiated per-call. Everything runs over JSON-RPC 2.0.

In this course you build the full picture. A QA agent from scratch using the A2A Python SDK. Then the same loan validation problem solved six ways — Microsoft Agent Framework, Google ADK, LangGraph backed by MCP tool servers, CrewAI, the OpenAI Agents SDK, and a bare-metal loop that shows what every framework automates. Each runs as a separate process on a fixed port. The capstone connects all six: a loan pipeline where AI handles 80% of decisions automatically, humans review the rest through a React dashboard, and every step is traced with OpenTelemetry.

1Understand why A2A exists
Explore the client-server architecture of A2A: what an Agent Card is, how tasks flow through the lifecycle (submitted → working → completed), and why standardizing inter-agent communication matters.
2Build and expose your first A2A agent
Build a QA agent, wrap it in an A2A server using the Python SDK, and create an A2A client from scratch — covering Agent Cards, task lifecycle (submitted → working → completed), and Server-Sent Events streaming.
3Integrate six agentic frameworks
Build agents with Microsoft Agent Framework, Google ADK, LangGraph + MCP, CrewAI, OpenAI Agents SDK, and Claude Agent SDK — each wrapped as an A2A server.
4Combine LangGraph with MCP tools
Create a CodeAgent using LangGraph, connect it to FastMCP tool servers for structured tool access, and run it entirely locally with Foundry Local Qwen2.5 Coder.
5Orchestrate with Microsoft Agent Framework
Build an OrchestratorAgent using Microsoft Agent Framework with Kimi-K2-Thinking that routes tasks to specialist A2A agents based on intent classification.
6Build the capstone multi-agent system
Build the capstone loan approval pipeline — six orchestrated agents with AI-driven decisioning, human-in-the-loop escalation, a React approval dashboard, and OpenTelemetry observability.
7Production patterns
Explore A2A extensions, TLS/OAuth 2.0/mTLS security hardening, OpenTelemetry distributed tracing, and GDPR/HIPAA compliance considerations for enterprise deployment.
Who Should Join?

Prerequisites

What you need before starting

PythonAI AgentsMulti-Agent SystemsGit
AI developers building multi-agent systems or working with agentic workflows. Familiarity with Python 3.11+ and a basic understanding of AI agents is recommended. No cloud accounts required — all model providers offer free tiers or local inference.
🛠

AI / ML Engineers

You build AI-powered products and want a standard protocol to connect multiple agents — across frameworks, teams, and organizational boundaries.

⚙️

Backend & Platform Engineers

You design distributed systems and want to add agent-to-agent communication as a first-class capability in your architecture.

💻

Full-Stack Developers

You are exploring agentic AI and want a structured, code-first introduction to multi-agent orchestration with real, runnable examples.

📊

Technical Leaders

You evaluate emerging technologies and need to understand A2A's design, ecosystem backing, and what production readiness looks like.

Course Outline

16 lessons + 1 interview questions · ~137 mins

Each lesson builds on the previous one — follow them in order for the best experience.

1

Introduction

Video Lesson·7 mins

Get oriented to agentic AI systems, the N² integration problem, and why A2A exists.

2

Why Agent2Agent Protocol?

Video Lesson·6 mins

Explore the motivation behind A2A — how it solves the interoperability problem and complements MCP.

3

A2A Architecture

Video Lesson·7 mins

Deep dive into A2A's architecture — Agent Cards, Messages, Task lifecycle, streaming, and JSON-RPC methods.

4

Setup & Resources

Video Lesson·4 mins

Set up your local development environment — the course repository, Python virtual environment, and all three model providers used across the lessons.

5💻

Building Your First A2A Agent

💻Video + Code Examples·17 mins

Build a standalone QA agent powered by GitHub Phi-4 using an async class pattern with domain knowledge injection.

6💻

Wrapping Agents as A2A Servers

💻Video + Code Examples·10 mins

Transform the standalone QAAgent into a fully A2A-compliant server using AgentExecutor, Agent Card, and A2AStarletteApplication.

7💻

A2A Client Fundamentals

💻Video + Code Examples·14 mins

Build a complete A2A client that discovers agents via Agent Cards and communicates using both blocking and streaming modes.

8💻

A2A with Microsoft Agent Framework

💻Video + Code Examples·9 mins

Build an OrchestratorAgent with Microsoft Agent Framework that uses Kimi-K2-Thinking to validate loan applications via hard rules and multi-step LLM reasoning, then expose it as an A2A server for cross-framework interoperability.

9💻

A2A with Google ADK

💻Video + Code Examples·7 mins

Build a loan-validation agent with Google ADK and expose it as an A2A server using the to_a2a() one-liner — the simplest A2A integration of any framework. Uses LiteLlm to run Azure-hosted Kimi-K2 without any Google Cloud dependency.

10💻

A2A with LangGraph

💻Video + Code Examples·6 mins

Build a loan-validation agent with LangGraph's create_react_agent and AzureChatOpenAI, then expose it as an A2A server using manual AgentExecutor wiring. Demonstrates the ReAct loop for automatic multi-step tool calling with Kimi-K2 via Azure AI Foundry.

11💻

A2A with CrewAI

💻Video + Code Examples·11 mins

Build a loan validation crew using CrewAI's role-based agent model — a Compliance Analyst runs checks while a Senior Underwriter synthesises the verdict. The entire crew is wrapped as a single A2A endpoint powered by Kimi-K2-Thinking.

12💻

A2A with OpenAI Agents SDK

💻Video + Code Examples·4 mins

Build a loan validation agent using the OpenAI Agents SDK with @function_tool decorators, Agent class, and Runner.run() execution. Configured for Azure-hosted models via set_default_openai_client — proving the SDK is not locked to OpenAI.

13💻

A2A with Claude Style Agents

💻Video + Code Examples·6 mins

Build an agent using no framework at all — a manual agentic loop with JSON-schema tool definitions, an explicit dispatch table, and conversation memory. Shows what every framework does under the hood. Powered by Kimi-K2-Thinking via Azure AI Foundry.

14💻

Multi-Agent System Deep Dive — Loan Approval

💻Video + Code Examples·10 mins

Capstone: build a production-grade multi-agent loan approval system with AI-driven decisioning (80%), human-in-the-loop escalation (20%), a React dashboard for approvals, and OpenTelemetry observability.

15

Advanced A2A Concepts — Extensions, Security & Observability

Video Lesson·5 mins

Explore production-ready A2A patterns: protocol extensions, security hardening (TLS, OAuth 2.0, mTLS), and observability with OpenTelemetry.

16

Conclusion & Next Steps

Video Lesson·4 mins

Recap the complete A2A journey: protocols, six frameworks, multi-agent orchestration, and paths forward.

17📝

Interview Questions

📝Interview Questions·10 mins

Practice 18 interview-style A2A questions covering protocol design, framework integration, multi-agent orchestration, security, and production deployment.

Instructor
Nilay Parikh

Nilay Parikh

Founder · LocalM · ErgoSum

Technologist with 20+ years of engineering experience and an ML/AI practitioner since 2010. Founder of ErgoSum (quantitative & equity research) and LocalM (AI-assisted SDLC). Currently focused on AI Platform Engineering, Agentic AI, and Context Engineering.