trace.init(), Veritrix automatically instruments every agent conversation turn, LLM invocation, tool execution, and reply chain across your entire AutoGen pipeline — so you can diagnose runaway loops, measure per-agent costs, and understand exactly how your agents collaborate to reach a final answer.
Prerequisites
- Python 3.10 or higher
- An active Veritrix account and API key
- AutoGen installed (
pyautogenor the newerautogen-agentchatpackage)
Installation & Setup
1
Install Veritrix and AutoGen
autogen-agentchat instead:2
Initialize Veritrix tracing
Call
trace.init() once at application startup, before you define any agents or start any conversations.3
Use AutoGen as normal
Veritrix patches AutoGen’s conversation runtime automatically. Your agent definitions and conversation logic remain unchanged.
Example: Two-Agent Conversation
The following example sets up a classic AutoGen pattern — an assistant agent and a user proxy — to collaboratively solve a coding problem. Veritrix traces every message exchange and LLM call in the conversation.Example: Group Chat with Multiple Agents
For GroupChat pipelines, Veritrix traces each agent’s contribution and the manager’s routing decisions.What Gets Captured Automatically
Veritrix captures the full conversation history attached to each trace, making it easy to replay and audit long multi-agent exchanges directly from the dashboard.