Interactive and Long-Horizon Task Evaluation

Michael BrenndoerferDecember 1, 20263 min read
Language AI HandbookAll chapters
Part 57 of 67Dynamic, Interactive, and Agentic Evaluation
Chapter 437Interactive and Long-Horizon Task Evaluation
Reading section 1 of 12 · Interactive and Long-Horizon Task Evaluation · 3 minSection 1 of 12 · 3 min

Section 1 of 12 · 3 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

A question-answering benchmark gives the model a prompt and grades one string. An agent benchmark gives the model a world, lets it act, watches what happens, and grades what the world looks like at the end. That single shift, from grading a response to grading a sequence of state transitions, is what this chapter is about.

When an agent runs for one turn, evaluation looks a lot like the metrics you already know. When it runs for fifty turns against a live filesystem, a database, or a browser, three things change simultaneously. First, the model's output at any step is only an action; what matters is the effect that action has on a stateful environment. Second, success is often all-or-nothing at the goal but incrementally partial along the way: an agent that books the right flight but loses the seat number has done real work that a final-state check will not see. Third, the very notion of "good" now includes properties of the whole trajectory that no single output can express, such as whether the agent recovered from an error, whether it stayed inside its budget, and whether it made an irreversible change before confirming it should.

This chapter builds a runnable evaluation harness for a fictional expense task. We specify the state, action checks, attempt budget, and observable goals, then score outcome, partial credit, recovery, efficiency, and safety. The receipt fixture and scripted trajectories run locally without API keys.

Along the way we lean on several earlier chapters. The distinction between a character, a token, and a step is now a distinction between a token, a message, and an action. The evaluation-fundamentals chapter on benchmark design and the one on evaluation challenges apply with full force, because an agent's trajectory is exactly the kind of artifact that is easy to game. And the tool-use foundations in Part XLVIII, especially function calling, the ReAct pattern, and the earlier agent evaluation survey, provide the vocabulary we build on.

The central claim of this chapter is that an interactive evaluation is a specification of a state machine plus a scoring function over trajectories of that machine, and most of the practical difficulty lies not in the model but in writing that specification so that it is verifiable, non-gameable, and informative about why an agent failed.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy