Setup
To capture the complete picture—including both the agent orchestrations and the underlying token costs—we highly recommend initializing both the AutoGen integration and your specific LLM provider (e.g., Google GenAI, OpenAI, Anthropic).Usage
Once initialized, agent conversations and tool calls are captured automatically:What Gets Captured
| Attribute | Description |
|---|---|
| Conversation Loop | The overarching initiate_chat session |
| Agent Steps | Individual spans for each AssistantAgent or UserProxyAgent turn |
| Messages | Full chat history, input messages, and agent replies |
| Tool calls | Function names, input arguments, and execution outputs |
| LLM calls | Raw completion requests to the provider |
| Tokens & Cost | Aggregated usage and pricing for the chat session |
Run the example
Clone the repo and run a complete agent end-to-end.Python
Run the Python example