Basic Example
In this example, theAgentAsJudgeEval will evaluate the output of the Agent with their input, providing a score of the Agent’s response according to the custom criteria provided.
agent_as_judge.py
Custom Evaluator Agent
You can use a custom agent to evaluate responses with specific instructions:agent_as_judge_custom_evaluator.py

Params
Methods
run() / arun()
Run the evaluation synchronously (run()) or asynchronously (arun()).
Provide either (
input, output) for single evaluation OR cases for batch evaluation, not both.Examples
Basic Agent as Judge
Basic usage with numeric scoring and failure callbacks
Agent as Judge as Post-Hook
Automatic evaluation after agent runs