Assay
09 / 11

Lesson 09 · Production · 12 min

Evaluating tool use

An agent that can call tools has a second kind of output: the sequence of actions it took. A reply can read perfectly while the actions behind it were wrong, so the two need scoring separately.

Tool-call correctnessDid the agent call the right tool, with the right arguments, when it should have — and leave it alone when it should not?
TrajectoryThe ordered sequence of steps taken. Useful when order matters, or when you want to catch an agent that reaches a right answer by an unreliable route.

Start with the single-step version, because it catches most real problems. For each case, record which tool should have been called and with what arguments, then compare. Unnecessary calls matter as much as missing ones — an agent that looks up an order on every message is wasteful and slow even when its answers are right.

Grading a whole trajectory strictly is usually a mistake, because there is often more than one reasonable route. Score the properties you actually care about instead: that a required step happened, that a forbidden one did not, that the number of steps stayed within a bound.

Checkpoint

Find a case where the agent produced a good reply but got the extracted field wrong.

The order-number grader is the simplest form of this check: it scores what the agent extracted, including whether it invented one.

Nothing has run yet. Pick a model and press Run — results appear row by row.