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.
Launch Arize
To get started, sign up for a free Arize account and get your Space ID and API Key.Install
Installpyautogen, 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 usingarize.otel.register and apply the instrumentors.
Run AutoGen Example
Here’s a basic example of setting up and running a simple AutoGen task. Ensure yourOAI_CONFIG_LIST is correctly pointing to your LLM configuration (e.g., using the OPENAI_API_KEY environment variable).