Skip to main content
The AgentJudge evaluates and critiques outputs from other AI agents, providing structured feedback on quality, accuracy, and areas for improvement. It supports single-shot evaluations and iterative refinement through multiple evaluation loops with context building. Based on the research paper: Agent-as-a-Judge: Evaluate Agents with Agents

Architecture

Parameters

Methods

step()

Processes a single task and returns the agent’s evaluation.

run()

Executes evaluation in multiple iterations with context building.
Returns str (full conversation) if return_score=False, or int (numerical score) if return_score=True.

run_batched()

Executes batch evaluation of multiple tasks.

Examples

Basic Evaluation

Custom Evaluation Criteria

Scoring Mode

Batch Processing

Reference