AutoGen AgentChat Tracing
Instrument and observe your AgentChat application
AutoGen AgentChat is the framework within Microsoft's AutoGen that enables robust multi-agent application.
Launch Arize
To get started, sign up for a free Arize account and get your Space ID and API Key.
Install
pip install openinference-instrumentation-autogen-agentchat autogen-agentchat arize-otelSetup
Connect your application to Arize AX and then apply the AutogenAgentChatInstrumentor .
# Import Arize OTel registration
from arize.otel import register
# Import the automatic instrumentor from OpenInference
from openinference.instrumentation.autogen_agentchat import AutogenAgentChatInstrumentor
# Setup OTel via our convenience function
tracer_provider = register(
space_id = "your-space-id", # in app space settings page
api_key = "your-api-key", # in app space settings page
project_name = "my-agentchat-project", # name this to whatever you would like
)
# Start the instrumentor for AutogenAgentChat
AutogenAgentChatInstrumentor().instrument(tracer_provider=tracer_provider)Run AgentChat
We’re going to run an AgentChat example using a multi-agent team. To get started, install the required packages to use your LLMs with AgentChat. In this example, we’ll use OpenAI as the LLM provider.
Observe
Arize AX provides visibility into your AgentChat operations by automatically tracing all interactions.
Resources
Last updated
Was this helpful?

