Framework-neutral, task-level evaluation and regression harness for AI agents
Task-level evaluation and regression testing for AI agents — framework-neutral.
Agents fail in ways unit tests never catch: they call the right tool with the wrong argument, finish with a plausible but wrong answer, or quietly double their token cost after a model swap. aeh treats an agent run as a test case: it ingests OpenTelemetry GenAI traces, applies a rubric, scores the outcome, and fails CI when an agent regresses.
trace (OTel GenAI) -> rubric checks -> judge -> report -> git diff-able JSON Why another eval tool Most agent evaluation today is either (a) a closed dashboard, or (b) a framework-specific SDK. aeh is deliberately the opposite:
pip install aehcli aeh demo # built-in 3-task demo: no files, no network, no API keys aeh demo runs two healthy agents and one that regressed on token budget, so you can see exactly what a failure looks like:
| case | result | ms | tokens | judge | first failing check | | demo-weather | PASS | 1400 | 180 | 0.89 | | | demo-review | PASS | 3200 | 120 | 0.89 | | | demo-budget | FAIL | 2400 | 1800 | 0.56 | tokens | Then point it at your own traces:
aeh run --cases cases.jsonl --traces ./my-traces --judge-model deepseek-flash aeh diff before.json after.json # exits 1 on regression How a case is defined {"id": "weather-agent-001", "task": "Find the weather in Shanghai and summarize it", "rubric": {"expect_tools": ["get_weather"], "output_contains": ["Shanghai"], "max_total_tokens": 2000}, "judge_threshold": 0.5} The id is matched against the trace's aeh.task.id attribute (falling back to the trace id). Three kinds of checks run:
Both are folded into one normalized gen_ai.* view before evaluation, so a case written once works across frameworks. The NAT mapping was verified against nvidia-nat 1.9.0's span_converter.py.
The gap it fills is narrow on purpose: business-level acceptance of an agent run, not GPU profiling and not model benchmarking.
120-task synthetic model-swap dataset, 40 real regressions (30 structural, 10 semantic):
Naive checks catch nothing. The deterministic layer is free and precise. The judge buys the semantic tail with zero false alarms across six judge models (DeepSeek, GLM, Google, Moonshot, NVIDIA). Note: reasoning models consume max_tokens with chain-of-thought, so a small budget returns empty content that looks like failure — see bench/README.md.
v0.1 — OTLP JSON ingestion, deterministic rubric, rule judge, JSON/Markdown reports, regression diff, GitHub Action example, one adapter (NVIDIA NAT).
ai agents evaluation evals opentelemetry observability ci llm
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




