Skip to main content
Pass your own evaluator agent with specific instructions to control how the judge evaluates.
1

Add the following code to your Python file

agent_as_judge_custom_evaluator.py
2

Set up your virtual environment

3

Install dependencies

4

Export your OpenAI API key

5

Run the example