How to test CrewAI agents with OpenTelemetry and agentest
agentest (agentest-ai) — deterministic OpenTelemetry evals for AI agents. It scores recorded traces, not your crew code. There is no built-in CrewAI import dialect yet. For your own crew, export OpenTelemetry GenAI spans (preferred), or import a task list with the built-in steps dialect or a small file: adapter. Recorded CrewAI runs already ship in this repository.
pip install agentest-ai
Try it on a recorded CrewAI run
The folder agents/a65/ is a recorded CrewAI research-brief crew. No API key, no network, no model:
agentest std run --agent a65 --ids T1-001 --format md
On agentest 3.5.0 that prints a T1-001 | fail row: the crew's success condition was that the brief is published, and the recorded run ended with an empty answer. That is a single recorded run, not a failure rate, and not a verdict on CrewAI. Other recorded CrewAI runs in agents/ include a09, a18, a24, a27, a38, a46, a51 and a57.
Judge your own crew
A. Export OpenTelemetry GenAI spans (preferred). Export to a file or to agentest std serve, then:
agentest std run --otlp traces.otlp.jsonl --card agent-card.json --tools tools.json
B. Convert a log you already keep. Dump each task's tool calls and import them with the built-in steps dialect (a task list of {"agent": …, "output": …}, optionally with a node log of tool steps) or a file:my_dialect.py adapter: agentest std import --dialect file:my_dialect.py.
The full guide is docs/integrations/crewai.md.
Other frameworks
LangGraph · OpenAI Agents SDK · AutoGen · smolagents · n8n · MCP