Skip to main content
Demonstrates agent-as-judge scoring with additional guidelines.
agent_as_judge_with_guidelines.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your OpenAI API key

4

Run the example

Save the code above as agent_as_judge_with_guidelines.py, then run:
Full source: cookbook/09_evals/agent_as_judge/agent_as_judge_with_guidelines.py