Skip to main content

Overview

The BeeAI Framework is an open-source framework for building AI agents, developed under the Linux Foundation. BeeAI has built-in support for the A2A protocol through A2AAgent, allowing your agents to communicate with remote A2A agents like StackOne’s. Use BeeAI Framework to build agents that:
  • Consume StackOne’s A2A agents as remote agents
  • Orchestrate multi-agent systems with local and remote agents
  • Access StackOne platform actions without managing tool definitions
Python only: BeeAI Framework’s A2AAgent supports custom authentication headers required for StackOne in Python. For TypeScript, use the A2A SDK (JavaScript tab) directly.

Installation

Install BeeAI Framework with A2A support using uv:
The A2A adapter ships in recent beeai-framework releases. If you pin an older version, the beeai_framework.adapters.a2a module may not be present.

Quick Start

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

Architecture

BeeAI’s A2AAgent allows your application to communicate with remote A2A agents:

Complete Example with Event Handling

Here’s a complete example that handles events and debug information:

Interactive Chat Loop

Create an interactive chat session with the StackOne agent:

Multiple StackOne Accounts

Connect to multiple StackOne accounts by creating separate A2AAgent instances:

Memory Management

BeeAI Framework provides memory implementations for conversation history:

Best Practices

Choose the right memory implementation for your use case:
Use UnconstrainedMemory for typical interactions. Memory must be empty when assigned to an agent.
Subscribe to update events for debugging and progress tracking:
This is especially useful for understanding agent behavior during development.
Wrap agent calls in try-except blocks to handle errors gracefully:
Use context IDs and task IDs to manage multi-turn conversations:

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