Skip to main content
The official A2A SDKs — Python and JavaScript, with Go and more also available — give you a client library for building agents that follow the Agent2Agent (A2A) Protocol. Use them to build agents that:
  • Discover and connect to StackOne’s A2A agents
  • Send messages and receive responses
  • Manage multi-turn conversations with context

Installation

Pin the 0.3 line. StackOne’s A2A server implements A2A 0.3; the SDKs’ 1.x lines target A2A v1.0 and are not yet compatible.

Quick start

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

Getting agent cards

During agent initialization, 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

Agent2Agent

The protocol round-trip with cURL, authentication, and troubleshooting.

Agent Frameworks

Build agents with framework integrations — ADK, AG2, BeeAI, Strands.