LangGraph 是 LangChain 团队推出的底层编排框架,用于构建长时间运行、带状态的智能体与工作流。它用图结构组织节点和边,让开发者显式控制分支、循环与多智能体协作,而不是把流程埋在提示词里。框架提供持久化执行,任务中断或失败后可从断点继续;支持在运行中人工介入,检查并修改智能体状态;同时具备短期工作记忆与跨会话长期记忆。搭配 LangSmith 可追踪执行路径、查看状态变化并做评测。它能独立使用,也可与 LangChain 生态集成,适合对可靠性和可控性要求较高的生产场景。
pip install -U langgraphTrusted 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.
内容由编辑整理,部分信息来自 GitHub 与项目官网,版权归原作者所有。发现错误?报告问题