|
|
Agent2Agent Protocol - A2A
Author: Venkata Sudhakar
Agent2Agent (A2A) is an open protocol introduced by Google at Cloud NEXT 2025, now supported by 50-plus enterprise partners including Salesforce, ServiceNow, SAP, and Deloitte. A2A defines a standard HTTP-based interface for agents to discover each other's capabilities (the Agent Card), send tasks, receive streaming responses, and collaborate across frameworks and vendors. Think of it as the REST API standard for agents - just as REST enabled any client to call any server, A2A enables any agent to call any other agent regardless of whether it is built with ADK, LangChain, CrewAI, or a proprietary enterprise system. An A2A server exposes an Agent Card at /.well-known/agent.json describing its capabilities, skills, and the tasks it accepts. Clients call the agent via POST to /tasks/send or /tasks/sendSubscribe for streaming. ADK agents can act as both A2A servers (exposing themselves to other agents) and A2A clients (calling other agents). This interoperability is the key enterprise value: your billing agent built in ADK can call a tax calculation agent built in LangChain at another team or vendor - no shared framework, no shared infrastructure, just the A2A protocol between them. The below example builds an A2A server exposing a GST calculation agent, then shows a billing agent acting as an A2A client calling it - demonstrating cross-agent delegation with the standard protocol.
Building the A2A client - billing agent calling the GST agent across the A2A protocol,
It gives the following output showing cross-agent A2A delegation,
Connected to A2A agent: GST Calculator Agent
SHOPMAX INDIA - INVOICE
Product (Base): Rs 45,000
CGST 9%: Rs 4,050
SGST 9%: Rs 4,050
Product Total: Rs 53,100
Service (Base): Rs 12,000
CGST 9%: Rs 1,080
SGST 9%: Rs 1,080
Service Total: Rs 14,160
Grand Total: Rs 67,260
(Base: Rs 57,000 + GST: Rs 10,260)
# Billing agent (ADK) called GST Calculator agent (A2A server)
# Two agents, potentially different frameworks, same protocol
# GST agent can be called by ANY A2A client - ADK, LangChain, CrewAI, or enterprise ERP
# Replace the GST agent URL to swap implementations without changing billing agent code
A2A is the agent equivalent of REST APIs - it decouples agent consumers from agent providers. Your billing agent does not need to know how the GST agent is implemented; it just calls a URL and gets a response. This is transformative for enterprise architectures: different teams can build and maintain specialist agents independently, expose them via A2A, and compose them into complex workflows without any shared codebase or framework lock-in. As the A2A ecosystem grows (50-plus partners including SAP, Salesforce, and ServiceNow), your ADK agents will be able to delegate to enterprise-grade specialist agents from these vendors via the same standard protocol.
|
|