https://github.com/langchain-ai/langgraph
Build resilient language agents as graphs.
https://github.com/langchain-ai/langgraph
Last synced: 10 days ago
JSON representation
Build resilient language agents as graphs.
- Host: GitHub
- URL: https://github.com/langchain-ai/langgraph
- Owner: langchain-ai
- License: mit
- Created: 2023-08-09T18:33:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-26T21:01:04.000Z (9 months ago)
- Last Synced: 2025-04-27T23:41:21.655Z (9 months ago)
- Language: Python
- Homepage: https://langchain-ai.github.io/langgraph/
- Size: 471 MB
- Stars: 11,989
- Watchers: 83
- Forks: 2,002
- Open Issues: 137
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Security: security.md
Awesome Lists containing this project
- awesome-deep-research - LangGraph - Framework for building stateful, multi-actor LLM applications extending LangChain. (🤖 Agent Technologies for Research / 🛠️ Agent Frameworks)
- StarryDivineSky - langchain-ai/langgraph - in-the-Loop:中断图形执行以批准或编辑代理计划的下一个操作。流式处理支持:流式传输每个节点产生的输出(包括令牌流式处理)。与LangChain集成:LangGraph与LangChain和LangSmith无缝集成(但不需要它们)。 (A01_文本生成_文本对话 / 大语言对话模型及数据)
- awesome-llm-tools - LangGraph
- awesome-autonomous-ops - LangGraph - based AI workflows. Useful for orchestrating multi-step diagnostic and remediation processes with cyclical reasoning. (Graph RAG & Root Cause Analysis for Logs and Incidents)
- awesome-agents - langgraph
- AiTreasureBox - langchain-ai/langgraph - 11-03_20524_2](https://img.shields.io/github/stars/langchain-ai/langgraph.svg)|| (Repos)
- awesome-generative-ai-data-scientist - LangGraph - actor applications with LLMs, used to create agent and multi-agent workflows. | [Documentation](https://langchain-ai.github.io/langgraph/) \| [Tutorials](https://github.com/langchain-ai/langgraph/tree/main/docs/docs/tutorials) | (LangChain Ecosystem)
- awesome-production-machine-learning - LangGraph - ai/langgraph.svg?style=social) - LangGraph is a library for building stateful, multi-actor applications with LLMs, used to create agent and multi-agent workflows. (Agentic Framework)
- Awesome-LLMOps - LangGraph - ai/langgraph.svg?style=flat&color=green)   (Orchestration / Agent Framework)
- awesome-claude-ai - LangGraph - Stateful agents (Integrations / Frameworks)
- Awesome-RAG-Production - LangGraph - High | (🏗️ Frameworks & Orchestration / Framework Comparison)
- awesome-ai-agents - LangGraph - based agent workflows. (Frameworks)
- awesome_ai_agents - LangGraph - LangGraph is a Python library facilitating the construction of stateful, multi-actor applications with LLMs, enabling cyclic coordination across multiple computation steps, particularly suited for agent-like behaviors, while also providing streaming support, and various guides and examples for implementation and usage [github](https://github.com/langchain-ai/langgraph) (Learning / Repositories)
- awesome-ai-agents - langchain-ai/langgraph
- awesome-langchain-zh - langgraph - ai/langgraph?style=social): 基于langchain 的 rag或agent框架 (LangChain框架)
- awesome-langchain - LangGraph - based reasoning to LangChain agents. (Tools & Extensions)
- awesome-LangGraph - `langgraph` - ai/langgraphjs) | Core graph-based agent orchestration framework | (🦜 LangGraph 🕸️ / Format Differences)
- jimsghstars - langchain-ai/langgraph - Build resilient language agents as graphs. (Python)
- awesome-data-analysis - LangGraph - Framework for building stateful, multi-actor applications with LLMs, with cycles and control flow. (🧠 AI Applications & Platforms / Tools)
- awesome-ai-agents - langchain-ai/langgraph - LangGraph is a low-level orchestration framework for building resilient, controllable AI language agents with customizable architectures, long-term memory, and real-time streaming support, used by major companies and integrated with the LangChain ecosystem. (AI Agent Frameworks & SDKs / Orchestration Frameworks)
- Awesome-RAG - LangGraph - ai/langgraph?style=flat)](https://github.com/langchain-ai/langgraph/stargazers) | (Agents / Framework Tutorials)
- awesome-production-genai - LangGraph - ai/langgraph.svg) - LangGraph is a library for building stateful, multi-actor applications with LLMs, used to create agent and multi-agent workflows. (Agent Development)
- awesome-repositories - langchain-ai/langgraph - Build resilient language agents as graphs. (Python)
- awesome - langchain-ai/langgraph - Build resilient language agents as graphs. (Python)
- awesome-ai-agents - LangGraph - ai/langgraph) |Stateful, multi-actor applications with LLMs | (🌟 Core Frameworks)
- awesome-llm - Agentic Workflow (智能体工作流) - 从单一 Prompt 到复杂的智能体协作系统。 (其他相关论文)
- awesome-llm-agent - LangGraph
- awesome-local-ai - LangGraph - actor applications (Agent Frameworks (fully local) (25))
- awesome-a2a-agents - langchain-ai/langgraph - Build resilient language agents as graphs. (Agent Categories / <a name="LangGraph"></a>LangGraph)
- llmops - LangGraph - actor applications |  | (Orchestration / Agent Frameworks)
README

[](https://pypi.org/project/langgraph/)
[](https://pepy.tech/project/langgraph)
[](https://github.com/langchain-ai/langgraph/issues)
[](https://docs.langchain.com/oss/python/langgraph/overview)
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.
## Get started
Install LangGraph:
```
pip install -U langgraph
```
Create a simple workflow:
```python
from langgraph.graph import START, StateGraph
from typing_extensions import TypedDict
class State(TypedDict):
text: str
def node_a(state: State) -> dict:
return {"text": state["text"] + "a"}
def node_b(state: State) -> dict:
return {"text": state["text"] + "b"}
graph = StateGraph(State)
graph.add_node("node_a", node_a)
graph.add_node("node_b", node_b)
graph.add_edge(START, "node_a")
graph.add_edge("node_a", "node_b")
print(graph.compile().invoke({"text": ""}))
# {'text': 'ab'}
```
Get started with the [LangGraph Quickstart](https://docs.langchain.com/oss/python/langgraph/quickstart).
To quickly build agents with LangChain's `create_agent` (built on LangGraph), see the [LangChain Agents documentation](https://docs.langchain.com/oss/python/langchain/agents).
## Core benefits
LangGraph provides low-level supporting infrastructure for *any* long-running, stateful workflow or agent. LangGraph does not abstract prompts or architecture, and provides the following central benefits:
- [Durable execution](https://docs.langchain.com/oss/python/langgraph/durable-execution): Build agents that persist through failures and can run for extended periods, automatically resuming from exactly where they left off.
- [Human-in-the-loop](https://docs.langchain.com/oss/python/langgraph/interrupts): Seamlessly incorporate human oversight by inspecting and modifying agent state at any point during execution.
- [Comprehensive memory](https://docs.langchain.com/oss/python/langgraph/memory): Create truly stateful agents with both short-term working memory for ongoing reasoning and long-term persistent memory across sessions.
- [Debugging with LangSmith](http://www.langchain.com/langsmith): Gain deep visibility into complex agent behavior with visualization tools that trace execution paths, capture state transitions, and provide detailed runtime metrics.
- [Production-ready deployment](https://docs.langchain.com/langsmith/app-development): Deploy sophisticated agent systems confidently with scalable infrastructure designed to handle the unique challenges of stateful, long-running workflows.
## LangGraph’s ecosystem
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:
- [LangSmith](http://www.langchain.com/langsmith) — Helpful for agent evals and observability. Debug poor-performing LLM app runs, evaluate agent trajectories, gain visibility in production, and improve performance over time.
- [LangSmith Deployment](https://docs.langchain.com/langsmith/deployments) — Deploy and scale agents effortlessly with a purpose-built deployment platform for long running, stateful workflows. Discover, reuse, configure, and share agents across teams — and iterate quickly with visual prototyping in [LangGraph Studio](https://docs.langchain.com/oss/python/langgraph/studio).
- [LangChain](https://docs.langchain.com/oss/python/langchain/overview) – Provides integrations and composable components to streamline LLM application development.
> [!NOTE]
> Looking for the JS version of LangGraph? See the [JS repo](https://github.com/langchain-ai/langgraphjs) and the [JS docs](https://docs.langchain.com/oss/javascript/langgraph/overview).
## Additional resources
- [Guides](https://docs.langchain.com/oss/python/langgraph/overview): Quick, actionable code snippets for topics such as streaming, adding memory & persistence, and design patterns (e.g. branching, subgraphs, etc.).
- [Reference](https://reference.langchain.com/python/langgraph/): Detailed reference on core classes, methods, how to use the graph and checkpointing APIs, and higher-level prebuilt components.
- [Examples](https://docs.langchain.com/oss/python/langgraph/agentic-rag): Guided examples on getting started with LangGraph.
- [LangChain Forum](https://forum.langchain.com/): Connect with the community and share all of your technical questions, ideas, and feedback.
- [LangChain Academy](https://academy.langchain.com/courses/intro-to-langgraph): Learn the basics of LangGraph in our free, structured course.
- [Case studies](https://www.langchain.com/built-with-langgraph): Hear how industry leaders use LangGraph to ship AI applications at scale.
## Acknowledgements
LangGraph is inspired by [Pregel](https://research.google/pubs/pub37252/) and [Apache Beam](https://beam.apache.org/). The public interface draws inspiration from [NetworkX](https://networkx.org/documentation/latest/). LangGraph is built by LangChain Inc, the creators of LangChain, but can be used without LangChain.