Index
A concept index for the whole book (Ch0–30, Parts I–III). In the web edition each locator is a clickable Section/Chapter link; in the PDF it is a page number, and the bold number is where the concept is defined. Part I entries point at the exact subsection; Part II–III key concepts now do too, the rest at the chapter. A few entries point into Appendix A, where the model switch lives.
A
add_conditional_edges — Wiring the branch See also conditional edge
add_edge — Wiring the line; Wiring it up; Fanning out to a chosen few (list form: wait for all) See also edge
add_node — Wiring it up
agent — see doc-bot (running example)
AgentMiddleware — One line of protection; The hooks See also middleware (create_agent); hooks
Annotated — The fix: a reducer See also reducer
async / event loop — 23 Async at Scale; Just enough asyncio; Streaming the answer: async + SSE; Resuming See also streaming; FastAPI; claim (one run per thread)
B
- back-edge — see loop / back-edge
- barrier, superstep — Fanning out over a dynamic list See also superstep
- BaseModel / Pydantic — see State schema
- bind_tools — Teaching the model what it can call: @tool + bind_tools See also tool-calling; ToolNode
- blue-green deployment — Part 2 — Blue vs Green See also index versioning
- branch / branching — Wiring the branch See also conditional edge
C
- checkpoint / checkpointer — Turning on durability; 3 The Smallest Graph; 7 Tool Nodes See also thread_id; durable execution; InMemorySaver; persistence internals; memory
- ChatOpenAI — 12 A Real LLM See also real LLM
- checkpoints vs writes — see persistence internals
- Chroma — The same retrieval, from a real database: Chroma See also vector store; RAG
- chunking — Cutting blindly vs cutting on boundaries See also RAG
- claim (one run per thread) — Resuming (taken before the first
await) See also resume; FastAPI - Command — Executing the decision; Command, the other dynamic router; When the schemas don’t line up See also interrupt; Send; destinations
- compile — Wiring it up
- conditional edge — Wiring the branch; 5 The Agent Decides See also routing function; add_conditional_edges; branch
- constrained decoding — Look at what it’s thinking See also structured output (with_structured_output); reasoning model
- create_agent — The whole loop in one line: create_agent; 13 Tool-Calling See also create_react_agent; ToolNode; middleware
- create_react_agent — The whole loop in one line: create_agent See also create_agent (its new home; deprecated since LangGraph 1.0); tool-calling
D
- dataclass (State) — see State schema
- defer (add_node) — Fanning out to a chosen few See also barrier, superstep; join
- destinations (add_node) — Command, the other dynamic router See also Command
- doc-bot (running example) — the bot that grows one chapter at a time: single node (3 The Smallest Graph) to line (4 A Line of Nodes) to branch (5 The Agent Decides) to loop (6 Looping Until Enough) to tools (7 Tool Nodes) to persistence (8 Save & Resume) to approval (9 Human in the Loop) to parallel (10 Parallel & Reducers) to subgraph (11 Subgraphs); then a real LLM (12 A Real LLM), tool-calling (13 Tool-Calling), a supervisor (16 Multi-Agent Supervisor), memory (17 Memory & Long Conversations), and a production RAG pipeline (27 RAG Foundations).
- nodes:
agent,search_docs,web_search,generate,rag - state fields:
question,answer,docs,route,web_results,sources
- nodes:
- Document (page_content, metadata) — The same retrieval, from a real database: Chroma; Cutting on structure: Markdown headings See also RAG; chunking
- draw_mermaid — 4 A Line of Nodes
- durability / durable execution — Turning on durability See also checkpoint
E
- edge — Wiring the line; Wiring it up See also conditional edge; back-edge
- embedding — Retrieval by hand: embed, then measure the angle See also RAG; vector store
- entrypoint (@entrypoint / @task) — see Functional API
- error_handler= / NodeError — Pattern 2: catch and route to a fallback (the declarative form, in the Deep Dive) See also RetryPolicy; fallback
- error handling — 21 Error Handling See also RetryPolicy; node caching
- evaluation harness — 32 Evaluation Harness
- regression gate — The regression gate
- LLM-as-judge — Metric 2: answer quality, judged by a model See also golden layer; RAG
- event loop — see async / event loop
F
- fan-out — Fanning out over a dynamic list; 5 The Agent Decides; 6 Looping Until Enough See also Send; parallel; superstep
- FastAPI / serving over HTTP — Ask the question
- fork — Time travel See also time travel
- Functional API — 15 The Functional API
- @entrypoint / @task — Two decorators, no graph
- entrypoint.final / previous — Persistence, interrupts, and streaming without a graph See also streaming; checkpoint
G
- generate — see doc-bot (running example)
- golden layer — The check: two guards See also RAG; evaluation harness
- gpt-oss-20b — Teaching the model what it can call: @tool + bind_tools; Look at what it’s thinking; Appendix A — Using Other LLMs (the book’s second local model) See also reasoning model; Qwen
- graph — 3 The Smallest Graph See also StateGraph; subgraph
- GraphRecursionError — Wiring the loop See also recursion_limit
H
- Helm — see Kubernetes
- human-in-the-loop (HITL) — The gate: pause for a human; 9 Human in the Loop; One line of protection See also interrupt; HumanInTheLoopMiddleware
- HumanInTheLoopMiddleware — One line of protection See also middleware; interrupt
- HyDE — see query rewrite
I
- idempotency — The gate: pause for a human; Resuming; Shutting down gracefully with RunControl (the resume contract: the same answer twice must be harmless) See also resume; interrupt
- index versioning — Part 1 — Versioning: re-embed only what changed See also blue-green deployment
- InMemorySaver — Turning on durability See also checkpoint
- interrupt — The gate: pause for a human; 8 Save & Resume See also Command; human-in-the-loop
- InvalidUpdateError — The bug: two writers race for one key See also reducer
- invoke — 3 The Smallest Graph
J
- join — Fanning out to a chosen few; Fanning out over a dynamic list See also barrier, superstep; defer (add_node); fan-out
K
KeyError — Wiring the line; 5 The Agent Decides
Kubernetes (Deployment, Service, Ingress, ConfigMap, Secret) — Part 2 — Blue vs Green See also blue-green deployment; Helm
L
- LLM-as-judge — Metric 2: answer quality, judged by a model See also evaluation harness
- loop / back-edge — Wiring the loop See also recursion_limit; superstep
M
- map-reduce — Fanning out over a dynamic list
- middleware (create_agent) — 19 Middleware; The whole loop in one line: create_agent; 21 Error Handling See also create_agent; HumanInTheLoopMiddleware; hooks See also Send
- MCP (Model Context Protocol) — The server: wrap a capability as tools See also tool-calling
- memory, long-term — 17 Memory & Long Conversations; 8 Save & Resume See also Store; checkpoint
- MessagesState — MessagesState: the prebuilt chat state See also State schema
- multi-agent — 16 Multi-Agent Supervisor See also supervisor
N
- node — The Node See also tool node
- node caching (CachePolicy) — Caching a node so it doesn’t pay twice See also error handling
O
- observability / tracing — The tracer: a logbook and a decorator
- operator.add — The fix: a reducer See also reducer
- Overwrite — The fix: a reducer See also reducer; state update
P
- parallel execution — The bug: two writers race for one key; 6 Looping Until Enough See also fan-out; superstep
- persistence internals — 26 Inside Persistence
- checkpoints vs writes tables — Two tables: checkpoints and writes
- Pregel — 26 Inside Persistence See also checkpoint
- pipeline — 4 A Line of Nodes
- Pydantic — see State schema
Q
- query rewrite (HyDE) — Rewrite: repair the query before you retrieve See also RAG; reranking
R
- reasoning model / reasoning_effort — Connecting a model; Teaching the model what it can call: @tool + bind_tools; Look at what it’s thinking (the thinking switch) See also constrained decoding; gpt-oss-20b
- requested vs. executed (tool calls) — What the harness cannot see: the path taken See also trajectory; tool-calling
- runtime authorization (refuse before the call) — Observing is not preventing See also trajectory; middleware
- RAG (retrieval-augmented generation) — 27 RAG Foundations
- embedding — Retrieval by hand: embed, then measure the angle
- vector store / Chroma — The same retrieval, from a real database: Chroma See also chunking; reranking; query rewrite; golden layer
- rag (subgraph node) — 11 Subgraphs
- real LLM — 12 A Real LLM See also ChatOpenAI; structured output
- recursion_limit — Wiring the loop See also GraphRecursionError; superstep
- reducer — The fix: a reducer; 6 Looping Until Enough
- Annotated binding — The fix: a reducer
- operator.add — The fix: a reducer
- custom (union) — 10 Parallel & Reducers See also fan-out; Send; state update
- regression gate — The regression gate See also evaluation harness
- RemainingSteps — Running it See also recursion_limit; GraphRecursionError
- reranking — Rerank: recall loosely, then let the model denoise See also RAG; query rewrite
- resume — 8 Save & Resume; Executing the decision See also interrupt; checkpoint
- RetryPolicy — Pattern 1: retry a transient fault with RetryPolicy See also error handling; node caching
- routing function — The routing function See also conditional edge
- runtime context — What doesn’t go in State: runtime context See also State schema
S
search_docs — see doc-bot (running example)
shipping gaps (what passing does not prove) — Nine things shipping asks for See also trajectory; evaluation harness
secrets (keep out of State) — Everything in State is on disk, in the clear; What doesn’t go in State: runtime context; Security: data leak across tenants; 33 Before You Ship See also runtime context; persistence
Send — Fanning out over a dynamic list See also fan-out; map-reduce; Command
serving over HTTP — see FastAPI
START and END — Wiring it up
state — The State
State schema — 14 State Schemas
- TypedDict — TypedDict: the shape the book already used
- BaseModel / Pydantic — BaseModel: validation at the door
- dataclass — dataclass: defaults without the checks
- MessagesState — MessagesState: the prebuilt chat state See also state; runtime context
state mapping — When the schemas don’t line up See also subgraph
state update / delta — The Node; 4 A Line of Nodes See also reducer
StateGraph — Wiring it up
Store — Long-term memory: the Store See also memory; checkpoint
streaming — 18 Streaming
- stream_mode — I want node updates: stream_mode="updates"
- get_stream_writer — I want to emit my own progress: stream_mode="custom" See also observability
structured output (with_structured_output) — A guaranteed-legal route: structured output See also real LLM; State schema
subgraph — Building the subgraph; 10 Parallel & Reducers See also graph; state mapping
supervisor — The supervisor decides who works next See also multi-agent
superstep — Wiring the loop; 8 Save & Resume; Fanning out over a dynamic list See also parallel; fan-out
SystemMessage — A conversation is a thread See also MessagesState; prompt
T
- ToolMessage — Teaching the model what it can call: @tool + bind_tools (a tool result, back in the message list) See also tool-calling; ToolNode
- trajectory (the path a run took) — What the harness cannot see: the path taken
- observing is not preventing — Observing is not preventing See also evaluation harness; testing
- thread_id — Turning on durability See also checkpoint
- time travel — Time travel
- get_state_history — Time travel
- update_state — Time travel
- fork — Time travel
- tool node — The tools; 6 Looping Until Enough See also web_search; tool-calling; ToolNode
- tool-calling — 13 Tool-Calling See also ToolNode; tool node; bind_tools; create_agent
- ToolNode — Letting the framework run the loop: ToolNode + tools_condition See also tool-calling; tool node
- tracing — see observability
- TypedDict — The State See also state; State schema
U
update_state — Time travel See also time travel
use_llm.py (switching providers) — Appendix A — Using Other LLMs See also gpt-oss-20b
V
- vector store — The same retrieval, from a real database: Chroma See also Chroma; RAG; embedding
- versioning — see index versioning
W
- web_search / web search — The tools; 6 Looping Until Enough
- with_structured_output — see structured output

