Quick Start
Evaluation Types
AccuracyEval
Uses an LLM judge to score output correctness on a 1-10 scale.PerformanceEval
Profiles execution time and memory usage across multiple runs.Number of profiling runs. Duration uses p95 percentile; memory uses peak across all runs.
ReliabilityEval
Verifies that expected tools are called during agent execution.When
true, unexpected tool calls cause failure. When false, only missing tools fail.Per-case overrides are supported via
EvalCase(metadata={"expected_tools": ["tool_a"]}).AgentAsJudgeEval
Evaluates output against custom criteria using an LLM judge. Supports numeric (1-10 score) and binary (pass/fail) modes.Batch Evaluation
Run multiple test cases and get aggregated results:EvalSuite result provides:
Team Evaluation
All eval types support team evaluation:Result Types
Each eval type returns a specialized result:
All results share common fields:
eval_name, success, score, reason, metadata.
All results support .to_dict() for JSON serialization.
Custom Evaluators
ExtendBaseEval to create custom evaluation logic: