Evaluating Agent Trajectories
In this article
- Mark each step of an agent trace as a hard constraint, a soft efficiency signal or harmless variation.
- Write trajectory checks as yes-or-no questions over the tool calls a run made.
- Explain why matching one exact expected path fails a valid run that took another route.
- Spot a "fewer steps" score that rewards a run for skipping a required check.
- Terms defined here: golden path, trajectory check.
Overview
An agent finished a task, and the end result is right. Did it get there in an acceptable way? It may have checked what it had to, or skipped the check and been lucky, or wasted five calls going in circles. An automatic check that reads only the end result cannot tell these runs apart.
The made-up support assistant of Brightline, a home-internet provider, gives the case: a customer with two recent orders asks for $30 back on a router, order 4471, and the agent may take at most 8 steps. The team holds trace T, the six-step trace of one run of this router refund, and the refund landed on the right order. You will learn to split such a record into rules that fail a run, signals that only flag it, and steps that do not matter, and to see why one fixed expected path fails runs that did nothing wrong.
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
- One expected path
- Questions instead of a path
- Grading trace T
- Soft signals
- When fewer steps wins
- How strict a match
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions