LangGraph

LangChain's stateful-graph framework for building agents as explicit nodes, edges, and conditional branches.

Definition

LangGraph is LangChain's library for orchestrating agents as a directed graph of nodes with shared state, instead of an opaque agent loop. Each node is a function or LLM call; edges decide the next step based on state. LangGraph is the preferred LangChain stack for production-grade agents because the graph topology is inspectable and testable.

When to use

See also