Chapter 9. Implementing A2A-Compliant Agents
The previous chapter treated Agent-to-Agent (A2A) as a protocol. This chapter turns that protocol into runnable service boundaries: an agent publishes a public card, receives a protocol message, translates that message into its own implementation, and returns a response that the caller can use without knowing the agent’s framework.
To show how these boundaries work in practice, this chapter develops three example implementations. In each, callers depend on agent cards and A2A messages, artifacts, and task status rather than framework-specific internals. Each implementation answers a different integration question:
An ADK initiator calls a LangGraph greeter through its public A2A surface. Here you see a cross-framework handshake between a LangGraph greeter and a Google ADK initiator.
A math client sends a question to an ADK-backed specialist without reaching into its tool code. In this example, you find an A2A wrapper around an existing ADK math agent. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access