How to test AutoGen agents with OpenTelemetry and agentest
agentest (agentest-ai) — deterministic OpenTelemetry evals for AI agents. It scores recorded traces, not your AutoGen (AgentChat / Core) code. There is a built-in autogen import dialect for recorded AgentChat events, and you can also emit OpenTelemetry GenAI spans. Recorded AutoGen runs ship in this repository.
pip install agentest-ai
Try it on a recorded AutoGen run
The folder agents/a10/ is a recorded AutoGen run. No API key, no network, no model:
agentest std run --agent a10 --ids T1-001 --format md
| ID | status | detail |
|---|---|---|
| T1-001 | pass | canon: postconditions hold |
Output from agentest 3.5.0. This is a single recorded run, not a failure rate, and not a verdict on AutoGen. Other recorded AutoGen runs in agents/ include a07, a16, a20, a21, a25, a29, a37, a50, a58 and a70.
Judge your own AutoGen agents
A. Export OpenTelemetry GenAI spans (preferred). AutoGen can take a tracer provider on the runtime. Then run agentest std run --otlp traces.otlp.jsonl.
B. Import recorded AgentChat events with dialect autogen. TextMessage becomes a message; ToolCallRequestEvent content that lists FunctionCall(...) entries becomes tool calls; HandoffMessage becomes a handoff. The importer is covered by tests/test_import_other_dialects.py.
The full guide is docs/integrations/autogen.md.
Other frameworks
LangGraph · CrewAI · OpenAI Agents SDK · smolagents · n8n · MCP