LangGraph is a low-level orchestration framework in the LangChain ecosystem, used to build, manage, and deploy long-running, stateful agents. It is developed by LangChain Inc, but can be used independently of LangChain.
Purpose LangGraph provides low-level supporting infrastructure for any long-running, stateful workflow or agent. It is suitable for agent systems that need durable execution, human oversight, and cross-session memory. If you want to quickly build agents, the official recommendation is to look at Deep Agents, a higher-level package built on LangGraph, which supports planning, using subagents, and leveraging the file system to handle complex tasks.
Main capabilities
- Durable execution: Build agents that can recover from failures, run for a long time, and automatically continue execution from where they left off.
- Human-in-the-loop: Inspect and modify agent state at any node during execution, seamlessly adding human oversight.
- Comprehensive memory: Provide both short-term working memory for continuous reasoning and long-term persistent memory across sessions, building truly stateful agents.
- Debugging with LangSmith: Use visualization tools to trace execution paths, capture state transitions, and provide detailed runtime metrics, deeply observing complex agent behavior.
- Production-grade deployment: Provide scalable infrastructure for deploying complex agent systems and addressing the unique challenges of stateful, long-running workflows.
Usage LangGraph can be used independently and also integrates seamlessly with any LangChain product. The official offerings include a Python version and a JS/TS version (LangGraph.js and the corresponding JS documentation). Developing, debugging, and deploying AI agents and LLM applications can be done with LangSmith. Official documentation includes the conceptual overview and guides at docs.langchain.com, the API reference at reference.langchain.com/python/langgraph, and the LangGraph Quickstart. Community exchange can take place through the LangChain Forum.
Ecosystem and supporting components
- Deep Agents: A higher-level package based on LangGraph, supporting planning, subagents, and filesystems.
- LangChain: Provides integrations and composable components to simplify LLM application development.
- LangSmith: Used for agent evaluation and observability, helping debug underperforming LLM applications, evaluate agent trajectories, gain production visibility, and continuously improve performance.
- LangSmith Deployment: A dedicated deployment platform for long-running, stateful workflows, enabling discovery, reuse, configuration, and sharing of agents, and enabling rapid iteration of visual prototypes through LangSmith Studio.
Applicable scenarios Suitable for developing stateful agents and long-running workflows that require durable execution, human review, cross-session memory, observability, and production deployment. Official learning resources also include Guides (code snippets for design patterns such as streaming output, memory and persistence, branching and subgraphs), free structured courses from LangChain Academy, and case studies.
Limitations and notes LangGraph is positioned as a low-level orchestration framework, not an out-of-the-box high-level agent solution; if you need to quickly build agents, the official recommendation is to use Deep Agents. Information such as specific pricing, fees, and platform support scope is not provided in the materials. LangGraph's design was inspired by Pregel and Apache Beam, and its public interface draws on NetworkX.