Skip to main content

Anthropic Judge

Use Anthropic Claude models as the evaluation judge.

Setup

export ANTHROPIC_API_KEY=sk-ant-...

Configuration

AgentEvalConfig config = AgentEvalConfig.builder()
.judgeModel(JudgeModels.anthropic("claude-haiku-4-5-20251001"))
.build();
ModelSpeedCostQuality
claude-haiku-4-5-20251001FastLowGood for most evals
claude-sonnet-4-6MediumMediumExcellent reasoning
claude-opus-4-6SlowHighBest quality

Example

AgentEvalConfig.builder()
.judgeModel(JudgeModels.anthropic("claude-sonnet-4-6"))
.cacheResults(true)
.build();

YAML Configuration

agenteval:
judge:
provider: anthropic
model: claude-sonnet-4-6