AutoGen Tracing

Trace Microsoft AutoGen agent frameworks with OpenInference and Arize, by instrumenting AutoGen and its underlying LLM calls.

Follow the tutorial notebook for an in-depth example. Note: you may need to adapt parts of the notebook's Phoenix setup to the Arize OTel setup described below.

AutoGen is a framework from Microsoft that enables the development of LLM applications using multiple agents that can converse with each other to solve tasks.

Launch Arize

To get started, sign up for a free Arize account and get your Space ID and API Key.

Install

Install pyautogen, the necessary OpenInference instrumentors, and Arize OTel packages.

API Key Setup

Configure the API key for the underlying LLM your AutoGen agents will use. For example, if using OpenAI:

Setup Tracing

Connect to Arize AX using arize.otel.register and apply the instrumentors.

Run AutoGen Example

Here's a basic example of setting up and running a simple AutoGen task. Ensure your OAI_CONFIG_LIST is correctly pointing to your LLM configuration (e.g., using the OPENAI_API_KEY environment variable).

Observe

Traces from both the AutoGen framework interactions and the underlying LLM calls will be sent to your Arize account. This allows you to see the conversation flow between agents and the details of each LLM call.

Resources

Last updated

Was this helpful?