Quick Start
1
Evaluate Output
- Python
- TypeScript
- CLI
How It Works
Choosing an Evaluation Approach
Match the judge setup to how strict and comparative your scoring needs to be.Evaluation Modes
Accuracy Evaluation
Compare agent output against an expected result:- Python
- TypeScript
Criteria Evaluation
Evaluate output against custom criteria:- Python
- TypeScript
Recipe/Workflow Evaluation
Evaluate multi-agent workflow execution:- Python
- TypeScript
Configuration
JudgeConfig
LLM model to use for evaluation
Temperature for consistent scoring (lower = more consistent)
Maximum tokens for LLM response
Score threshold for passing (1-10 scale)
Custom evaluation criteria
- Python
- TypeScript
JudgeResult
The result object contains:Judge with Agent
Evaluate an agent’s response directly:- Python
- TypeScript
Custom Judges
Register Custom Judge
- Python
- TypeScript
Domain-Agnostic Evaluation
UseJudgeCriteriaConfig for any domain:
- Python
- TypeScript
Async Evaluation
- Python
- TypeScript
CLI Reference
Best Practices
Use Low Temperature
Use Low Temperature
Set
temperature: 0.1 or lower for consistent scoring across evaluations.Define Clear Criteria
Define Clear Criteria
Be specific about what constitutes a good output. Vague criteria lead to inconsistent scores.
Set Appropriate Thresholds
Set Appropriate Thresholds
- 7.0: Standard quality bar
- 8.0: High quality requirement
- 6.0: Lenient evaluation
Review Suggestions
Review Suggestions
The
suggestions array provides actionable improvements. Use them to iterate on agent prompts.Related
Evaluation Framework
Complete evaluation suite
Agent Testing
Test your agents

