对话界面、知识库与智能体MITPython

LangGraph

Low-level orchestration for stateful, long-running agents as graphs.

Star 数
45.6K
Fork 数
7.9K
未关闭 Issue
506
最近提交
2026-11-29

数据来自 GitHub API · 更新于 2026-11-30

LangGraph 是什么?

LangGraph models agents as graphs of nodes and edges with shared state, giving fine-grained control over loops, branching, human-in-the-loop approval and persistence. It works with or without LangChain and has Python and JavaScript versions.

主要功能

  • Graph-based control flow with cycles
  • Checkpointing and durable execution
  • Human-in-the-loop interrupts
  • Streaming of tokens and intermediate steps
  • Python and JS/TS libraries

系统要求

平台
Windows · macOS · Linux
Python
3.9+

如何安装 LangGraph

根据项目 README 整理。开源项目更新很快,请以 GitHub 页面上的最新说明为准。

pip

  1. 1
    Install the library.
    pip install -U langgraph

npm

  1. 1
    Install the JS version.
    npm install @langchain/langgraph @langchain/core

优势

  • Precise control over agent behavior
  • Production features like persistence

不足

  • Lower-level than CrewAI-style frameworks

LangGraph 替代品对比

软件Star 数许可证平台显存
LangGraph

Low-level orchestration for stateful, long-running agents as graphs.

45.6KMIT—
LangChain

The most widely used framework for building LLM applications.

150.2KMIT—
CrewAI

Python framework for orchestrating role-playing, collaborative AI agents.

61.4KMIT—
AutoGen

Microsoft’s framework for building multi-agent AI applications.

62KCC-BY-4.0—
LlamaIndex

Data framework for connecting LLMs to your documents.

53.1KMIT—
Open WebUI

Self-hosted ChatGPT-style interface for Ollama and OpenAI-compatible APIs.

159.8KOpen WebUI License (BSD-3-Clause based)—

常见问题

LangGraph 免费吗?

是的——LangGraph 是开源软件,采用 MIT 许可证。商用前请确认软件及模型权重的许可条款。

LangGraph 支持 Windows、Mac 和 Linux 吗?

LangGraph 支持:Windows, macOS, Linux。

如何安装 LangGraph?

1. Install the library.

LangGraph 有哪些好的替代品?

常见替代品包括 LangChain, CrewAI, AutoGen, LlamaIndex,详见本页对比表。