Skip to main content

Overview

The Agent Development Kit (ADK) is Google’s open-source framework for building AI agents. ADK has built-in support for the A2A protocol, allowing your agents to communicate with remote A2A agents like StackOne’s.
This guide covers using ADK to call StackOne’s A2A agent. The StackOne A2A agent is itself built on ADK and the StackOne ADK plugin, see How StackOne A2A works for how it works under the hood.
Use ADK to build agents that:
  • Consume StackOne’s A2A agents as remote sub-agents
  • Orchestrate multi-agent systems with local and remote agents
  • Access StackOne platform actions without managing tool definitions

Installation

Install ADK with A2A support using uv:

Quick Start

This example creates an orchestrator agent that delegates HR tasks to a StackOne A2A agent.
See Authentication Guide for details on obtaining your API key and account ID.

Architecture

ADK’s RemoteA2aAgent allows your local agent to delegate tasks to remote A2A agents:

Complete Example

Here’s a complete example with a local tool and a remote StackOne agent:

Running the Agent

Use ADK’s built-in web server to interact with your agent:
Then open http://localhost:8000 in your browser to chat with your agent.

Example Interactions

Listing Employees:
Getting Employee Details:

Multiple StackOne Accounts

Connect to multiple StackOne accounts by creating separate HTTP clients and RemoteA2aAgent instances for each:

Best Practices

Provide detailed descriptions for your RemoteA2aAgent instances. The orchestrator uses these descriptions to decide when to delegate tasks.
Include clear delegation instructions in your orchestrator’s system prompt:
ADK handles A2A communication errors, but you should instruct your agent on how to respond:
When your application shuts down, clean up the HTTP client and agent resources:

Next Steps

A2A SDK

Build custom A2A tools with the Python or JavaScript SDK

Authentication

Learn about authentication and security

Quickstart

Learn A2A basics with cURL

Gemini Enterprise & Google Agent Platform

Use StackOne agents from Google’s platforms