part II · chapter 7 of 17

Agents and tools

Systems that plan, call tools, observe the result and loop until the goal is done.

why it matters

Moves AI from writing text to doing work against APIs, databases, browsers and code.

before this: chapter 6, Memory

being written

This chapter is being written. Here is what it will cover; until then, the full topic list is in our notes.

  • planning, decomposition, termination
  • tool schemas, selection, errors, permissions
  • ReAct, plan-and-execute, supervisors
  • graphs, checkpoints, retries, MCP
the topic list on GitHub (opens in a new tab)

you reached the end of the chapter

build this

Project 2: a research agent that searches, reads, cites and asks before any external action.

the maths underneath

  • maths note 5

    Probability foundations

    P(x1,…,xT)=∏t=1TP(xt∣x<t)P(x_1, \ldots, x_T) = \prod_{t=1}^{T} P(x_t \mid x_{<t})

    This is how a language model defines the probability of a text, and why a ten-step agent at 95% per step finishes only 60% of the time.

check yourself

Tick what you could explain to someone else, out loud, without notes.