Build resilient agents.
Trusted by companies shaping the future of agents – including Klarna, Replit, Elastic, and more – LangGraph is a low-level orchestration framework for building, managing, and deploying long-running, stateful agents.
pip install -U langgraph[!TIP] If you're looking to quickly build agents, check out Deep Agents — a higher-level package built on LangGraph for agents that can plan, use subagents, and leverage file systems for complex tasks.
For an equivalent JS/TS library, check out LangGraph.js and the JS docs.
LangGraph provides low-level supporting infrastructure for any long-running, stateful workflow or agent:
[!TIP] For developing, debugging, and deploying AI agents and LLM applications, see LangSmith.
While LangGraph can be used standalone, it also integrates seamlessly with any LangChain product, giving developers a full suite of tools for building agents.
To improve your LLM application development, pair LangGraph with:
Discussions: Visit the LangChain Forum to connect with the community and share all of your technical questions, ideas, and feedback.
LangGraph is inspired by Pregel and Apache Beam. The public interface draws inspiration from NetworkX. LangGraph is built by LangChain Inc, the creators of LangChain, but can be used without LangChain.
CLI: `langgraph build` fails when a local dependency ships its own requirements.txt
docs(examples): address prompt-injection spend bypass in customer support tutorial with tool-boundary guards
SqliteCache: a comma in a node name breaks cache lookup with KeyError in match_cached_writes
ToolNode silently drops Command.update when a tool returns Command(graph=PARENT, goto=[Send(...)])
Unable to pass serde to PostgresSaver in langgraph.checkpoint.postgres via function from_conn_string
Figure out what we can do to help explain differences between update vs. values
EncryptedSerializer: deleting a thread's newest checkpoint row silently rolls the thread back to an earlier state (no head/sequence check)
retry_on as a name raises isinstance's TypeError instead of the documented one and skips every retry
Resuming one of two parallel interrupts inside a subgraph re-runs a sibling node that already completed
[Feature Proposal] Durable tool execution idempotency & retry middleware