BeeAI

IBM Research developed BeeAI Framework as a full-featured toolkit for crafting autonomous agents and coordinated multi-agent systems. The framework supports both Python and TypeScript, offering components for reasoning, action execution, and inter-agent collaboration on complex problem-solving tasks.

This guide explains how to route telemetry from BeeAI applications into InteractiveAI using OpenTelemetry-based instrumentation.

Prerequisites

  • InteractiveAI account with API credentials

  • LLM provider credentials (OpenAI, Ollama, or other supported provider)


Installation

pip install beeai-framework interactiveai openinference-instrumentation-beeai beeai-framework[wikipedia]

Configuration

Set your API credentials as environment variables:

import os

# InteractiveAI credentials
# Obtain keys from Settings > API Keys in the dashboard
os.environ["INTERACTIVEAI_PUBLIC_KEY"] = "pk-ia-..."
os.environ["INTERACTIVEAI_SECRET_KEY"] = "sk-ia-..."
os.environ["INTERACTIVEAI_HOST"] = "https://app.interactiveai.com"

# LLM provider credentials
# Adjust based on your chosen provider
os.environ["OPENAI_API_KEY"] = "sk-proj-..."
# Ollama runs locally and requires no API key
# Other providers use their respective environment variables

Initialize the client and confirm connectivity:


Enabling Trace Capture

BeeAI Framework includes a dedicated OpenTelemetry instrumentor. Activate it to capture all framework operations:

Once enabled, every agent execution, tool invocation, and model call generates spans that flow to InteractiveAI.


Enriching Traces with Context

Layer the InteractiveAI SDK on top of BeeAI instrumentation to attach user identifiers, session data, and custom metadata:


Trace Visibility

The InteractiveAI dashboard displays comprehensive trace data including:

  • Agent reasoning steps and iteration counts

  • Tool calls with arguments and responses

  • Model requests with token usage and latency

  • Memory operations and context management

  • Complete input/output chains for debugging

Last updated

Was this helpful?