Agent Testing & Evaluation — frameworks, AI lab approaches, standards · Nov 2026
Classical software testing assumes deterministic output — same input, same result. AI agents are stochastic, multi-step, and tool-using. A unit test that asserts assertEqual(result, expected) cannot evaluate whether the agent took the right reasoning path, used the right tool in the right order, or made a decision that will hold at scale. Three dimensions must be tested independently: output quality, reasoning trajectory, and operational safety.
earnedPremium > 0, a trap question is generated automatically: "what if earned premium is zero?" The ontology IS the test spec. Tredence's agentic repair loop uses this pattern.Using a language model to score another language model's output is Generation 2's key method — but its reliability is contested.
The agent testing equivalent of Test-Driven Development. Write the eval before writing the fix. Because agents are non-deterministic, assertions need statistical thresholds, not binary pass/fail.
openai/evals repo continues as a community benchmark registry but is not a trajectory evaluator and ships no CI/CD runner.
| Framework | Tests | How it works | Licence / cost | Best for |
|---|---|---|---|---|
| DeepEval | Output, RAG, agent task, span-level | pytest-style runner, 50+ metrics (G-Eval, faithfulness, task completion). CI-friendly. Confident AI is the hosted wrapper. | Apache 2.0 (open source) | Most popular OSS option; teams wanting CI/CD integration out of the box |
| LangSmith | Output, trace, trajectory, tool calls, multi-turn | Hosted; integrates with LangGraph for span-level and full-trace scoring; trajectory evals are first-class | Proprietary ~$39/seat/month | LangChain / LangGraph shops; teams that need trajectory scoring today |
| Braintrust | Output, span, full trace, A/B prompt | Hosted; eval + observability in one; MIT-licensed proxy; scorers run per span or completed trace; versioned prompt/eval management | MIT proxy / hosted pricing | Teams wanting versioned eval management and A/B prompt testing |
| W&B Weave | Agent traces, conversations, LLM calls, tool calls | Apache 2.0 toolkit; ingests OpenTelemetry spans; multi-modal trace support | Apache 2.0 (open source) | Teams already using Weights & Biases for ML experiment tracking |
| TruLens | Agent traces, logical consistency, tool calling, goal-plan-action alignment | Open source; reference-free goal-plan-action alignment metrics; CI/CD gates for Azure Pipelines, CircleCI, GitHub Actions. MLflow integrates TruLens scorers natively (2026). | Apache 2.0 | Azure / MLflow shops; multi-step reasoning validation |
| RAGAS | RAG pipeline only (retrieval, faithfulness, relevancy) | Open source; specialized — not built for general agent or multi-turn eval | Apache 2.0 | RAG pipeline quality only; combine with DeepEval for agent evals |
| Promptfoo | Security, prompt injection, red-teaming, vulnerability scanning | Open source CLI + CI integration; adversarial probing; now OpenAI's recommended migration target | MIT (open source) | Security testing, red-teaming, prompt injection harness |
| Inspect (UK AISI) | Safety, autonomy, cyberattack capability, tool use, multi-turn | MIT-licensed Python harness; METR, Apollo Research, and government testing bodies run on it. Inspect Hawk = METR's AWS infrastructure layer. | MIT (open source) | Safety evals, government / regulated-sector compliance, frontier risk assessment |
| Langfuse | Traces, spans, dataset evals | Open source + self-hosted option; privacy-first; no data leaves infrastructure | MIT (open source) | Privacy-sensitive deployments where traces cannot leave your infrastructure |
| Phoenix (Arize) | Traces, spans, production monitoring | Open source; OpenTelemetry-native; strong observability + eval pairing | Apache 2.0 | Production monitoring + eval in one view |
| OpenAI Evals (hosted) | — | Shutting down. Read-only 31 Oct 2026; removed 30 Nov 2026. | — | Migrate to Promptfoo |
Match the tool to the question you're trying to answer:
All Generation 2 tools — LangSmith, W&B Weave, TruLens, Langfuse, Phoenix — ingest OpenTelemetry (OTel) spans. This means you can swap the eval frontend without re-instrumenting your agent. The emerging pattern is: instrument once with OTel → fan out to multiple eval backends. The agentevals package (LangChain, not OpenAI) implements trajectory matching evaluators on top of OTel spans and works with any OpenTelemetry-instrumented framework using OpenAI models (e.g. o3-mini) as judges.
create_trajectory_match_evaluator — most-used pattern for OpenAI Agents SDK testing.| Standard / Body | Scope | Relevance to agent testing | Status |
|---|---|---|---|
| NIST AI RMF 1.0 + AI 600-1 (Gen AI Profile) |
US — AI risk management | MEASURE function covers testing methodology. AI 600-1 is the agents-specific companion. Most common governance framework cited in financial services. | Live |
| NIST Agent Standards Initiative | US — agent security, identity, interoperability | Directly targets AI agents. Focuses on agent identity, trust, and interoperability — where eval evidence must land. | Active (Feb 2026) |
| ISO/IEC 42001 | International — certifiable AI management | 38 Annex A controls; audit-ready. Continuous testing evidence (eval runs, CI logs) feeds directly into the MEASURE and MANAGE controls. Used as the audit wrapper over NIST RMF. | Live |
| Inspect (UK AISI) | UK government — safety eval harness | MIT-licensed Python framework. METR, Apollo Research, and government bodies run on it. METR migrated from Vivaria onto Inspect (Jun 2026). Inspect Hawk = AWS infrastructure layer. | Live · Government standard |
| METR Time Horizon 1.1 | Model capability assessment | Post-2023 capability doubling time = 130.8 days (Jan 2026 report). Frontier risk reports with agent capability assessments. Sets the context for what "safe" means over time. | Active |
| CSA Agentic Governance v1 | Cloud Security Alliance | Maps NIST AI Agent Standards to agentic governance controls. Published Mar 2026. | Published |