Skip to main content
Attach Agent as Judge as a post-hook to automatically evaluate every agent response.
1

Add the following code to your Python file

agent_as_judge_post_hook.py
2

Set up your virtual environment

3

Install dependencies

4

Export your OpenAI API key

5

Run the example