evaluator_agent.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
evaluator_agent.py, then run:Score an agent’s step-by-step calculator math against an expected answer using a custom evaluator agent with an AccuracyAgentResponse output schema.
Set up your virtual environment
Install dependencies
Export your OpenAI API key
Run the example
evaluator_agent.py, then run: