Skip to main content
LangGraph is a low-level orchestration framework and runtime for long-running, stateful agents. You define workflows as graphs of shared state, nodes, and edges, and can mix deterministic steps with LLM-driven steps in the same graph. LangGraph focuses on orchestration capabilities such as durable execution, streaming, and human-in-the-loop. It does not prescribe prompts or agent architecture. Before you start, learn the building blocks agents use, especially models and tools. Docs examples often use LangChain for those integrations, but LangGraph does not require LangChain. If you want a higher-level agent loop first, use Deep Agents or LangChain agents. Use LangGraph when you need explicit control over state and control flow.

Install

Create a minimal graph:
For a full calculator agent, see the LangGraph quickstart.

Capabilities

LangGraph provides the runtime primitives for stateful, long-running workflows. It does not abstract prompts or force a fixed agent architecture.
  • Deterministic and agentic steps: Combine hand-coded nodes with model-driven nodes in one graph.
  • Persistence: Checkpoint state and resume after failures or pauses.
  • Human-in-the-loop: Pause execution, inspect or edit state, then continue.
  • Memory: Short-term thread state and longer-term memory across sessions.
  • Streaming: Stream tokens, state updates, and other events as the graph runs.

Integrations, deployment, and observability

LangGraph works on its own. However, you can also pair it with other LangCHain products:

LangChain

Integrations and agent abstractions built on LangGraph.

LangSmith Deployment

Deploy and scale stateful agents, with visual prototyping in Studio.

LangSmith Observability

Trace requests, evaluate outputs, and monitor deployments.

See also