Glossary

The book’s vocabulary, one line each, with the place each word is first made to do work. These are the definitions the book uses — where LangGraph’s own documentation says it differently, the chapter named here is where the difference is shown. For every occurrence of a term, see the Index that follows.

Term What it means here First seen
add_conditional_edges Wires a routing function to a node: when the node finishes, the function reads the state and names the next node. Wiring the branch
add_edge An unconditional edge: when its source finishes, its target runs, every time. Given a list of sources, it waits for all of them. Wiring the line
add_messages The reducer behind MessagesState: appends new messages, and replaces an existing one whose id matches. MessagesState: the prebuilt chat state
ainvoke The async door into a compiled graph: the same run as invoke, awaited; the only door once any node is async def. invoke is closed, ainvoke is open
Annotated The typing wrapper that attaches a reducer to one key of the state. The fix: a reducer
await Where a coroutine runs, and where it may stop: if the awaited thing is not ready, the event loop runs another coroutine until it is. Just enough asyncio
bind_tools Hands the model the schemas of the tools it may ask for, so a reply can be a tool call instead of prose. Teaching the model what it can call: @tool + bind_tools
blue-green Two complete copies of an index or a deployment, one of them serving; a pointer moves traffic to the other, and can move it back. Part 2 — Blue vs Green
checkpoint A snapshot of every state channel, written by the checkpointer after a superstep — when one is attached, and when the durability mode says so — and keyed by thread. Turning on durability
checkpointer The object that writes and reads checkpoints — InMemorySaver, SqliteSaver — handed to compile(). Turning on durability
Chroma The embedded vector store Part III retrieves from. The same retrieval, from a real database: Chroma
chunking Cutting documents into pieces small enough to embed and retrieve, on boundaries that keep each piece whole. 28  Chunking
Command A node’s return value that carries both a state update and the name of the node to run next. Command, the other dynamic router
compile() Freezes a StateGraph into something that can be invoked. It checks that names exist, not that data flows. Wiring it up
conditional edge An edge whose target is chosen at run time by a routing function. 5  The Agent Decides
coroutine What calling an async def returns: an object the event loop can run, which does nothing until it is awaited. Just enough asyncio
create_agent One call that assembles the model-and-tools loop you would otherwise wire yourself. The whole loop in one line: create_agent
durability When a finished superstep’s checkpoint must land relative to the next step: "sync" before it starts, "async" alongside it, "exit" only when the run ends. Turning on durability
embedding A vector standing for a text, placed so that texts with similar meaning land close together. Retrieval by hand: embed, then measure the angle
@entrypoint, @task The Functional API: an entrypoint is the graph, written as a function; a task is a unit of work inside it that returns a future. 15  The Functional API
evaluation harness An eval set of questions and expected answers, run through the system and scored, with a gate that fails the build when a score falls. 32  Evaluation Harness
event loop The scheduler every coroutine on a thread shares: run the current one to an await that is not ready, then run whichever other one is. Just enough asyncio
fan-out One node’s completion starting several nodes in the same superstep. 10  Parallel & Reducers
gather Hands the event loop several coroutines at once and returns their results in order; the time is the slowest, not the sum. Just enough asyncio
golden layer A small, curated store of approved answers consulted before retrieval runs. 31  The Golden Layer
GraphRecursionError What a run raises when it passes recursion_limit. 6  Looping Until Enough
human-in-the-loop Pausing a run at a gate for a person to decide, and carrying on with their answer. The gate: pause for a human
interrupt Pauses the run inside a node, saves a checkpoint, and hands a payload out; the run resumes with Command(resume=…). The gate: pause for a human
InvalidUpdateError Two nodes wrote the same key in one superstep and no reducer said how to merge them. The bug: two writers race for one key
invoke Runs the compiled graph on an input and returns the final state. Wiring it up
join Waiting for several parallel branches before going on: the list form of add_edge, or defer=True. Fanning out to a chosen few
LLM-as-judge A model scoring another model’s answer against a reference — after the judge has itself been checked. Metric 2: answer quality, judged by a model
MCP The Model Context Protocol: tools served by another process, over stdio or HTTP, discovered at run time. 25  MCP: External Tools
memory, long-term Facts kept across conversations, in a Store namespace rather than in a thread. Long-term memory: the Store
MessagesState The prebuilt state: a messages list with the add_messages reducer on it. MessagesState: the prebuilt chat state
middleware Hooks around the model call and the tool calls inside create_agent, for guards and limits that leave the graph alone. 19  Middleware
node A function that reads the state and returns an update. Nodes never call each other. The Node
persistence What the checkpointer keeps and how: two tables, checkpoints and writes. 26  Inside Persistence
query rewrite Repairing or widening the question before retrieval, so that the search finds what was meant. Rewrite: repair the query before you retrieve
RAG Retrieval-augmented generation: retrieve passages first, then generate from them. 27  RAG Foundations
recursion_limit The cap on supersteps one invoke may take — a fuse against a loop that never stops. 6  Looping Until Enough
reducer The function that merges a node’s update into a key (operator.add, add_messages). Without one, the update replaces. The fix: a reducer
reranking Retrieve loosely, then have a model score the candidates and keep the best. Rerank: recall loosely, then let the model denoise
resume Continuing a thread from its last checkpoint: invoke(None, config) under the same thread_id picks up after a failure, and Command(resume=...) answers an interrupt(). A new input on the same thread starts a new turn, not a resume. 8  Save & Resume
RetryPolicy Per-node retries with backoff, for faults that go away if you wait. Pattern 1: retry a transient fault with RetryPolicy
routing function A plain function of the state that returns the name of the next node. The routing function
runtime context Per-run dependencies — the model handle, a user id, a secret — passed at invocation and kept out of State. What doesn’t go in State: runtime context
semaphore A counter await can wait on, so that at most N of something is in flight: the client-side half of a server’s limit. Pattern: too many calls in flight
Send Dynamic fan-out: one Send per item, each starting a node with its own input. Fanning out over a dynamic list
state The typed object every node reads and returns updates to — a TypedDict in most chapters, a BaseModel or dataclass in 14  State Schemas. What nodes share through the graph; runtime context and the Store live beside it. The State
state update What a node returns: only the keys it changed, which the runtime merges into the state. The Node
StateGraph The builder: nodes and edges over a state schema, compiled into something that runs. Wiring it up
Store Key-value storage shared across threads, in namespaces, for long-term memory. Long-term memory: the Store
stream_mode Which events a streamed run yields: updates, messages (tokens), custom, values, or a list of these. 18  Streaming
structured output Asking the model for a reply that parses into a schema, so that what comes back is a legal value — not a guarantee that a reply comes back, nor that a legal choice is the right one. A guaranteed-legal route: structured output
subgraph A compiled graph used as a node of another graph. It returns its whole final state, not a delta. Building the subgraph
superstep One tick of the runtime: every node that is ready runs and their updates merge; with a checkpointer attached, a checkpoint follows. 4  A Line of Nodes
supervisor A node that reads the workers’ reports and picks which worker runs next. The supervisor decides who works next
thread, thread_id One conversation’s chain of checkpoints, and the config value that names it. Turning on durability
time travel Re-running a thread from one of its earlier checkpoints. Time travel
@tool A Python function with a schema the model can ask to have called. Teaching the model what it can call: @tool + bind_tools
tool node A node whose job is a side effect — a search, an HTTP call — written back into the state. 7  Tool Nodes
ToolNode The prebuilt node that executes the tool calls in the last model message and appends their results as ToolMessages. Letting the framework run the loop: ToolNode + tools_condition
tool-calling The model replying with a structured call rather than prose, and the loop that runs it and feeds the result back. 13  Tool-Calling
ToolRuntime Hands a tool run-level values — the store, the context — that the model never sees. What a tool may see that the model may not: ToolRuntime
tracer A logbook of where a run’s time and tokens went, written by a decorator or by callbacks. The tracer: a logbook and a decorator
TypedDict A dictionary with declared keys, which is what State is in most chapters. A contract, not a check. TypedDict: the shape the book already used
vector store A database that indexes embeddings and returns the nearest ones to a query. The same retrieval, from a real database: Chroma
versioning (of an index) Stamping each embedded document with the version of its source, so that only what changed is re-embedded. 30  Versioning & Blue-Green