Skip to main content
The official A2A SDKs give you a client library for building agents that discover and talk to StackOne’s A2A agents. Pick your language below.

Overview

The A2A Python SDK provides a Python client library for building agents that interact with A2A agents following the Agent2Agent (A2A) Protocol.Use this SDK to build agents that:
  • Discover and connect to StackOne’s A2A agents
  • Send messages and receive responses
  • Manage multi-turn conversations with context

Installation

Install the A2A SDK using uv or pip:
Pin the 0.3 line. StackOne’s A2A server implements A2A 0.3; the a2a-sdk 1.x line targets A2A v1.0 and is not yet compatible.

Quick Start

Get an Agent Card, send a Message, and print the response.
See Authentication Guide for details on obtaining your API key and account ID.

Getting Agent Cards

During agent initialisation, fetch an Agent Card for every A2A agent you want to send messages to. This is typically a setup step as opposed to a tool.
Ensure to include the agent information in the agent’s context (e.g. system message).

Sending Messages

To send messages to A2A agents, give your agent access to a tool like below.
The tool below gives the agent relatively high autonomy. You might want to abstract context IDs and task IDs outside of the tool.
See a complete working example in the StackOne A2A Agents Orchestrator Demo, which shows how to build an orchestrator agent that routes requests to multiple StackOne A2A agents, manages multi-turn conversations, and serves as an A2A server itself.

Next Steps

Quickstart

Learn A2A basics with cURL

Authentication

Learn about authentication and security

Agent Frameworks

Build agents with framework integrations