Skip to content
AI Agents
The AI Agents Book

Chapter Deep

Chapter 2 — How Models Work

First-principles explanation This chapter explains how LLMs transform text into predictions: tokens, probabilities, and the practical implications for reliability. Why this matters for agents Agents depend on the model’s output distribution. Understanding “what the model is doing” is the foundation for tool-use, planning, and evaluation.

Chapter video

A walkthrough or summary video will go here when it is ready. This is a placeholder for now.

Coming soon

First-principles explanation

This chapter explains how LLMs transform text into predictions: tokens, probabilities, and the practical implications for reliability.

Why this matters for agents

Agents depend on the model’s output distribution. Understanding “what the model is doing” is the foundation for tool-use, planning, and evaluation.

Chapters on this site

theaiagentsbook.com/en/chapters/

Index →