on_fail callback for handling evaluation failures.
1
Add the following code to your Python file
agent_as_judge_basic.py
2
Set up your virtual environment
3
Install dependencies
4
Export your OpenAI API key
5
Run the example
Basic usage of Agent as Judge evaluation with numeric scoring and failure callbacks
on_fail callback for handling evaluation failures.
Add the following code to your Python file
Set up your virtual environment
Install dependencies
Export your OpenAI API key
Run the example