a2aproject/a2a-python

Official Python SDK for the Agent2Agent (A2A) Protocol

What it solves

This library provides a standardized way for AI agents to communicate with one another. By implementing the Agent2Agent (A2A) Protocol, it ensures that different agentic applications can interoperate regardless of the underlying transport layer or database backend.

How it works

It acts as a Python SDK that allows developers to run agentic applications as A2A Servers. It supports multiple communication protocols (JSON-RPC, HTTP/REST, and gRPC) and provides optional integrations for web frameworks like FastAPI and Starlette, as well as SQL databases (PostgreSQL, MySQL, SQLite) and OpenTelemetry for tracing.

Who it’s for

Developers building AI agents that need to follow a common communication standard to interact with other agents or clients.

Highlights

  • Protocol Compliance: Fully implements the A2A Protocol Specification v1.0 (with backward compatibility for v0.3).
  • Transport Flexibility: Supports JSON-RPC, HTTP+JSON/REST, and gRPC.
  • Async Performance: Built using modern asynchronous Python.
  • Extensible Architecture: Allows easy addition of new communication protocols and database backends.

Related

  • Project
  • Project
  • Project
  • Project
  • Project