Appendix E — The Critters

Every drawing in this book, in one place, chapter by chapter.

They are not decoration and they are not quite diagrams. Each one takes a term from the text literally — middleware becomes middle wear, a runtime is time out running, reflection is a duckling finding nothing in the water — on the bet that a joke you have to unpack leaves the definition behind. The book prints them without captions on purpose: an illustration that needs explaining has not worked. This sheet holds to that too — the labels appear only when a drawing is enlarged, and they name where each one is, never why it is funny.

A few characters recur. The alarm clock is State — it runs, it hands over its passport, it takes notes — and it turns up wherever the book is talking about what flows through a graph rather than what computes. The llama is the agent, the duck turns up wherever something is being examined, and one picture belongs to no chapter at all:

A cat seeing a lion in the mirror

The same shape elsewhere — in eleven chapters

It opens every “The same shape elsewhere” section, the recurring aside that finds this chapter’s idea in some older corner of software. A cat, a mirror, and a lion looking back: the thing you built is the thing somebody else already named.


Preface

Preface illustration: plan the graph

plan the graph


Chapter 0 — Setup

Chapter 0 illustration: setup with care

setup with care


Chapter 1 — The Smallest Graph

Chapter 1 illustration: chapter cover

The Smallest Graph

Chapter 1 illustration: return the delta

return the delta

Chapter 1 illustration: runtime running

runtime running


Chapter 2 — A Line of Nodes

Chapter 2 illustration: chapter cover

A Line of Nodes

Chapter 2 illustration: pipeline ducks

pipeline ducks

Chapter 2 illustration: tea before cup

tea before cup


Chapter 3 — The Agent Decides

Chapter 3 illustration: chapter cover

The Agent Decides

Chapter 3 illustration: switchboard

switchboard

Chapter 3 illustration: both dishes

both dishes


Chapter 4 — Looping Until Enough

Chapter 4 illustration: chapter cover

Looping Until Enough

Chapter 4 illustration: fuse hamster wheel

fuse hamster wheel

Chapter 4 illustration: remaining steps goat

remaining steps goat


Chapter 5 — Tool Nodes

Chapter 5 illustration: chapter cover

Tool Nodes

Chapter 5 illustration: empty drawer

empty drawer

Chapter 5 illustration: fish baton

fish baton


Chapter 6 — Save & Resume

Chapter 6 illustration: chapter cover

Save & Resume

Chapter 6 illustration: checkpointer

checkpointer

Chapter 6 illustration: into the snapshot

into the snapshot


Chapter 7 — Human in the Loop

Chapter 7 illustration: chapter cover

Human in the Loop

Chapter 7 illustration: reshear from the top

reshear from the top

Chapter 7 illustration: stop sign robot

stop sign robot


Chapter 8 — Parallel & Reducers

Chapter 8 illustration: chapter cover

Parallel & Reducers

Chapter 8 illustration: two writers one key

two writers one key

Chapter 8 illustration: pangolin at the piano

pangolin at the piano

 


Chapter 9 — Subgraphs

Chapter 9 illustration: chapter cover

Subgraphs

Chapter 9 illustration: whole kitchen

whole kitchen

Chapter 9 illustration: xray nested fish

xray nested fish


Chapter 10 — A Real LLM

Chapter 10 illustration: chapter cover

A Real LLM

Chapter 10 illustration: spin until killed

spin until killed

Chapter 10 illustration: tuning through the static

tuning through the static

 


Chapter 11 — Tool-Calling

Chapter 11 illustration: chapter cover

Tool-Calling

Chapter 11 illustration: order slip

order slip

 


Chapter 12 — State Schemas

Chapter 12 illustration: chapter cover

State Schemas

Chapter 12 illustration: bulldog doorman

bulldog doorman

Chapter 12 illustration: llama in suitcase

llama in suitcase


Chapter 13 — The Functional API

Chapter 13 illustration: chapter cover

The Functional API

Chapter 13 illustration: hanging the decorator

hanging the decorator

Chapter 13 illustration: caped function

caped function


Chapter 14 — Multi-Agent Supervisor

Chapter 14 illustration: chapter cover

Multi-Agent Supervisor

Chapter 14 illustration: reasoning vs not

reasoning vs not

Chapter 14 illustration: duckling ripples

duckling ripples


Chapter 15 — Memory & Long Conversations

Chapter 15 illustration: chapter cover

Memory & Long Conversations

Chapter 15 illustration: scroll reread

scroll reread

Chapter 15 illustration: shlemiel the painter

shlemiel the painter


Chapter 16 — Streaming

Chapter 16 illustration: chapter cover

Streaming

Chapter 16 illustration: bullhorn logbook

bullhorn logbook

 


Chapter 17 — Middleware

Chapter 17 illustration: chapter cover

Middleware

Chapter 17 illustration: hooks on seams

hooks on seams

Chapter 17 illustration: accessorized harness

accessorized harness


Chapter 18 — Testing

Chapter 18 illustration: chapter cover

Testing

Chapter 18 illustration: davinci goose

davinci goose

 


Chapter 19 — Error Handling

Chapter 19 illustration: chapter cover

Error Handling

Chapter 19 illustration: take a punch

take a punch

 


Chapter 20 — Serving over HTTP

Chapter 20 illustration: chapter cover

Serving over HTTP

Chapter 20 illustration: claim tag

claim tag

Chapter 20 illustration: run lookup goat

run lookup goat

Chapter 20 illustration: hippo closing

hippo closing

 

 


Chapter 21 — Async at Scale

Chapter 21 illustration: chapter cover

Async at Scale

Chapter 21 illustration: await, wait command

await, wait command

Chapter 21 illustration: two-headed bear

two-headed bear

Chapter 21 illustration: light bull

light bull

 

 


Chapter 22 — Observability

Chapter 22 illustration: chapter cover

Observability

Chapter 22 illustration: fat waterfall

fat waterfall

Chapter 22 illustration: langsmith couple

langsmith couple


Chapter 23 — MCP: External Tools

Chapter 23 illustration: chapter cover

MCP: External Tools

Chapter 23 illustration: tool vending

tool vending

 


Chapter 24 — Inside Persistence

Chapter 24 illustration: chapter cover

Inside Persistence

Chapter 24 illustration: bee the saver

bee the saver

Chapter 24 illustration: acorns on the lid

acorns on the lid

Chapter 24 illustration: sleeping sentinel

sleeping sentinel


Chapter 25 — RAG Foundations

Chapter 25 illustration: chapter cover

RAG Foundations

Chapter 25 illustration: urania

urania

Chapter 25 illustration: king plus woman equals queen

king + woman = queen

Chapter 25 illustration: chroma dog

chroma dog


Chapter 26 — Chunking

Chapter 26 illustration: chapter cover

Chunking

Chapter 26 illustration: cutting blindly

cutting blindly

Chapter 26 illustration: breadcrumbs

breadcrumbs


Chapter 27 — Query Rewrite & Reranking

Chapter 27 illustration: chapter cover

Query Rewrite & Reranking

Chapter 27 illustration: gold panning

gold panning

 


Chapter 28 — Versioning & Blue-Green

Chapter 28 illustration: chapter cover

Versioning & Blue-Green

Chapter 28 illustration: repaint one plank

repaint one plank

 


Chapter 29 — The Golden Layer

Chapter 29 illustration: chapter cover

The Golden Layer

Chapter 29 illustration: stale honey badger

stale honey badger

 


Chapter 30 — Evaluation Harness

Chapter 30 illustration: chapter cover

Evaluation Harness

Chapter 30 illustration: llama judge

llama judge

Chapter 30 illustration: average inspector

average inspector


Chapter 31 — Before You Ship

Chapter 31 illustration: chapter cover

Before You Ship

 

 


Appendix A — Using Other LLMs

Appendix A illustration: cover

cover


Appendix B — The Class Map

Appendix B illustration: cover

The Class Map

 

 


Appendix C — Agent Patterns: You’ve Built, Met, and Might Have Heard Of

Appendix C illustration: cover

The Pattern Map

 

 


Appendix D — Other Agent Frameworks

Appendix D illustration: cover

Other Agent Frameworks