LogoA2A Docs

Samples to see A2A in action

Sample implementations to see A2A in action

Samples to see A2A in action

This page provides links to sample implementations that demonstrate how to use the A2A protocol in different contexts. These samples are available in the A2A GitHub repository.

Sample A2A Client/Server

A reference implementation of both client and server components for the A2A protocol:

  • Basic API implementation
  • JSON-RPC message handling
  • Task management
  • Authentication examples

Explore the Client/Server Sample →

Multi-Agent Web App

A complete web application demonstrating how multiple agents can collaborate using the A2A protocol:

  • Browser-based UI
  • Multiple specialized agents
  • Task coordination
  • Real-time updates

Explore the Multi-Agent Web App →

Command Line Interface (CLI)

A command-line tool for interacting with A2A agents:

  • Simple text-based interface
  • Task creation and management
  • Streaming support
  • Agent discovery

Explore the CLI Sample →

Agent Implementations

The repository also includes sample implementations of A2A for various agent frameworks:

FrameworkDescriptionLink
Google ADKGoogle's Agent Development Kit with A2A supportView Sample →
CrewAIMulti-agent orchestration frameworkView Sample →
LangGraphAgent workflow frameworkView Sample →
GenkitJavaScript agent frameworkView Sample →

Running the Samples

Most samples can be run with these general steps:

# Clone the repository
git clone https://github.com/google/A2A.git
cd A2A/samples/[sample-directory]
 
# Install dependencies
npm install  # for Node.js/TypeScript samples
pip install -r requirements.txt  # for Python samples
 
# Start the server (typically in one terminal)
npm run server  # or python server.py
 
# Run the client (in another terminal)
npm run client  # or python client.py

Each sample includes specific instructions in its README file.

Table of Contents