Chapter 2. From LLMs to Agents
To use AI well in your work, you need a working mental model of what you are actually using. LLMs are statistical engines that predict the next token, and agents are those engines wrapped in a loop that lets them take action. Those two ideas, internalized properly, will take you further than any list of tips about prompt phrasing.
This chapter gives you that model. The first half explains how LLMs actually work and where they succeed or fail. The second half shows how a language model becomes an agent by adding tools, context, and a loop, and discusses how to reason about agent behavior in practice. The closing section surveys the AI tooling landscape, including the categories of tools software teams are likely to adopt, how they fit into the development lifecycle, and how to choose among them without chasing hype.
This chapter is not an introduction to machine learning. You will not find a derivation of the Transformer or a primer on backpropagation. Everything ...
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