Skip to main content
Evaluate your agent’s reasoning, tool use, recovery, and quality by driving it through realistic tasks.

Define the test agent

  • Global default:
  • Per‑test override with with_agent (place above @task):
  • Factory for parallel safety:
More patterns: agent_definition_examples.py.

What to measure

  • Tool behavior: Expect.tools.was_called, called_with, sequence, output_matches
  • Efficiency and iterations: Expect.performance.max_iterations, Expect.path.efficiency
  • Quality: Expect.judge.llm, Expect.judge.multi_criteria
  • Performance: response times, concurrency (see metrics)

Styles for agent evals

Inspecting spans and metrics

Sources: