Testing Agent Graders
In this article
- Test each grader of an agent eval on a scripted agent with planted faults, with the expected verdicts written before the run.
- Diagnose a missing failure, an unexpected failure and an extra failure in a grader matrix.
- Make every grader return pass, fail or not-applicable with a reason its reader can act on.
- Keep not-applicable results out of pass rates.
- Terms defined here: grader verdict, not-applicable result, planted fault.
Overview
Your agent eval has four graders, and every one has been green for weeks. That has two readings: nothing went wrong, or a grader cannot see what it is meant to catch. A grader is code or a model making a judgement, so it can be wrong like any other code, and a wrong grader that gates a release does real damage.
The made-up home-internet provider Brightline gives the case: its team now tests the four graders that check its support assistant's tool calls. You will learn to prove that each grader fails for the right reason, passes a valid run, and says plainly when it had nothing to judge.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- Four graders on trial
- Test the grader, not the agent
- Three answers and a reason
- Plant faults, write the answer first
- Run it and read the differences
- n/a is not a pass
- Reasons someone can act on
- Judges get the same test
- The rule at work
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions