Chapter 7. Evaluating Agents
The previous chapters built up the components of an agent one by one: how it reasons, how it uses tools, how it stores and retrieves memory, and how it plans across multiple steps. By now you have a mental model of how these pieces fit together to form the system we call an AI agent. The natural next question to ask is, how do we know if any of it is working?
That’s what this chapter is about, as we can see in Figure 7-1. Evaluation is how you move from “it seems to work” to “I have evidence it works.” It’s also how you catch the moment it stops working. Evaluations are one of the most underinvested areas in agent development. Teams often rely on manual testing and intuition longer than they should, then find themselves unable to ship improvements confidently or diagnose regressions when they appear.
Figure 7-1. This chapter covers how LLMs and agents are evaluated ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access