Chains vs. State Graphs: Why LangGraph Exists
Linear chains are DAGs. Agents need cycles, shared state, and checkpoints. A look at the abstraction shift.
Linear chains are DAGs. Agents need cycles, shared state, and checkpoints. A look at the abstraction shift.
A checkpointer remembers one thread. Agents also need to remember users across sessions and search corpora far larger than any context window. Where each kind of memory lives, and how to wire both into a LangGraph agent.
A model can't do anything; it can only emit JSON that asks for something to be done. How tool schemas reach the model, how the application executes the calls and feeds results back, and what LangGraph's ToolNode handles for you.
Malformed JSON, hallucinated arguments, unknown tools, and flaky APIs: how to route each failure to whoever can fix it, feed errors back so the model corrects itself, and bound the loop so it can't spin forever.