LangGraph / LangChain / LangSmith
1. 介绍
1.1. 三件套定位
LangChain 公司的产品线由三部分构成,理解三者分工是理解其 Harness 定位的前提:
| 组件 | 定位 | 开源 / 商业 |
|---|---|---|
| LangChain | 快速起步的构建库,1.0 版本完全重写,由 LangGraph 运行时驱动 | 开源 |
| LangGraph | 底层编排框架:控制每一步、记忆、human-in-the-loop、长任务的 durable execution | 开源(MIT) |
| LangSmith | 智能体工程平台:观测、评估、部署、Agent Builder | 商业(含免费开发档) |
一句话概括三者关系:LangChain 提供砖块,LangGraph 提供结构,LangSmith 提供仪表盘。
LangGraph 的诞生有明确的工程动因。LangChain 早期的 Agent Executor 是个黑盒:接收查询 → 调 LLM → 解析工具名 → 执行工具 → 回灌观察 → 重复直到模型给出最终答案。这个循环无法中途检查、无法跨调用持久化状态、无法在长任务中间插入人工、无法分支。后来引入的 LCEL(LangChain Expression Language)虽然简化了组件连接,但设计上是有向无环图,无法循环。
LangGraph 正是为补齐这三件事而生:显式循环、可持久化状态、human-in-the-loop。
1.2. 基本信息卡
| 项目 | 内容 | 置信度 |
|---|---|---|
| 开发商 | LangChain, Inc.(旧金山;创始人 Harrison Chase、Ankush Gola) | 高 |
| LangChain 开源起点 | 2022-10(Harrison Chase 首次提交) | 高 |
| LangGraph 首次公开发布 | 2024-01-08 | 高 |
| LangGraph 1.0 | 2025-10-22 | 高(官方博客) |
| 最新版本 | 第三方口径:LangGraph 1.2(2026-05-12);版本随发布节奏变化,标 | 中 |
| 许可证 | MIT(LangGraph 库) | 高 |
| GitHub 规模 | 第三方统计:39,176 stars / 6,587 forks / 673 open issues(2026-08);另有口径称 langchain + langgraph 合计约 118,000 stars | 中,口径冲突,标 |
| 融资 | Series A $25M(Sequoia,2024-02,估值 $200M);Series B $125M(IVP 领投,2025-10,估值 $1.25B);累计约 $260M | 高(官方博客 + 项目硬数据) |
| 商业规模 | 2025 年 ARR 翻倍;服务 35% 的 Fortune 500;langchain + langgraph 合计 9,000 万月下载;LangSmith 月 trace 量同比 12 倍 | 高(官方博客 + 项目硬数据) |
| 定价(LangSmith) | Developer $0 / 席位(5,000 base traces / 月);Plus $39 / 席位(10,000 traces + 1 个免费 Serverless(Small) 部署);Enterprise 自定义(自托管 / 混合 / 自定义 SSO / RBAC-ABAC / 支持 SLA) | 中高 |
| 计量单价 | 托管计算 $1.50 / LangChain Compute Unit;存储 $1.00 / LangChain Storage Unit | 中 |
| 典型客户 | Klarna、LinkedIn、Uber、Cisco、Workday、Coinbase、Rippling、Lyft、Harvey、Abridge、Autodesk、Bristol Myers Squibb、Replit、Clay、Cloudflare | 高(官方博客) |
1.3. 发展时间线
| 时间 | 事件 | 来源等级 |
|---|---|---|
| 2022-10 | LangChain 开源项目首次提交 | A |
| 2023 年初 | LangChain, Inc. 成立 | A |
| 2024-01-08 | LangGraph 首次公开发布 | A |
| 2024-02 | Series A $25M(Sequoia,估值 $200M) | A |
| 2024-06 | LangGraph 0.1 / LangGraph Cloud beta | B |
| 2025-01-29 | Functional API 发布 | B |
| 2025-05 | LangGraph Platform GA | B |
| 2025-07-16 | 开源 Open Deep Research(LangGraph 实现的三阶段管线) | A |
| 2025-09-08 | LangChain 1.0 alpha | B |
| 2025-10-22 | LangGraph 1.0 + LangChain 1.0 发布;同日公布 $125M Series B(估值 $1.25B) | A(官方博客) |
| 2025-10 | LangGraph Platform 并入 LangSmith,成为 Deployment 特性 | A |
| 2026-03-10 | LangGraph 1.1 | B |
| 2026-05-12 | LangGraph 1.2 | B |
LangChain 官方对 1.0 的定位是「稳定性里程碑而非功能堆叠」,原话:"This is the first stable major release in the durable agent framework space, a major milestone for production-ready AI systems." 并明确 1.0 之后遵循严格无破坏性变更策略,直到 hypothetical 2.0。
1.4. 在 AI Harness 体系中的位置
按参数卡边界表,LangGraph 是 Agent Framework 的典型代表——主要覆盖 L2/L3,是 Harness 的子集。但 LangGraph 的实际覆盖比一般 Framework 宽:它通过 Checkpointer 与 Store 触及 L4,通过 LangSmith 触及 L5。
关键判断:
- LangGraph 库本身 = L2 + L3 + L4 的一部分;
- LangSmith = L5(+ 部分 L6 的 RBAC / SSO,仅 Enterprise);
- 二者合起来构成当前开源生态中最接近完整 Harness 的组合,但 L6 的治理与成本护栏仍基本缺失。
2. 名词解释
| 术语 | 英文/缩写 | 释义 |
|---|---|---|
| LangGraph | LangGraph | LangChain 出品的底层编排框架,把智能体建模为节点与边构成的有向图,支持显式循环 |
| State | State | 共享的、带类型的状态对象;每个 LangGraph 应用都围绕它构建,节点读写它来传递信息 |
| Node | Node | 图中的一个步骤,通常是一个函数或一次 LLM 调用;接收 state,返回 state 更新 |
| Edge | Edge | 节点之间的转移关系;可以是固定边,也可以是按 state 决定的条件边 |
| Graph Compiler | Graph Compiler | 把 state / node / edge 定义编译为可执行图的组件 |
| Checkpointer | Checkpointer | 持久化层组件,负责在每个 superstep 保存状态;InMemorySaver 用于内存,SqliteSaver 用于持久化 |
| Checkpoint | Checkpoint | 某一时刻的状态快照,是崩溃恢复、暂停续跑、time travel 的基础 |
| Thread | Thread | 一次运行的会话标识;同一 thread 下的多次运行共享检查点历史 |
| Superstep | Superstep | Pregel 式执行的基本单位:一个 superstep 内所有节点的写入,在下一个 superstep 开始时统一可见 |
| Durable Execution | Durable Execution | 持久执行:崩溃或暂停的智能体可从最近检查点恢复,而非从头重跑 |
| Interrupt | Interrupt | 在任意节点暂停图执行以等待审批或编辑,之后可恢复 |
| Human-in-the-loop | HITL | 人机协同:在执行中途插入人工判断的模式 |
| Time Travel | Time Travel | 回溯到历史检查点、从该点重新执行的能力 |
| Store | Store | 跨会话(cross-session)记忆存储,用于实现跨会话的个性化 |
| Streaming | Streaming | 原生 token 级流式输出,实时呈现智能体推理与工具调用 |
| Moderation Hook | Moderation hooks | 用于「防止智能体跑偏」的内容审核钩子 |
| LangSmith | LangSmith | 商业智能体工程平台:观测、评估、部署、Agent Builder |
| Trace | Trace | 一次运行的完整轨迹记录,含每一步的输入输出与 token 用量 |
| Deployment | Deployment | LangSmith 的部署能力,前身为 LangGraph Platform,2025-10 并入 |
| Insights Agent | Insights Agent | LangSmith 观测模块中的智能体,自动归类智能体行为模式 |
| Agent Builder | Agent Builder | 无代码 text-to-agent 构建器(私有预览) |
| LCEL | LangChain Expression Language | LangChain 的管道式组合语法,设计为 DAG,不能循环——这正是 LangGraph 出现的原因 |
| Functional API | Functional API | LangGraph 于 2025-01-29 引入的函数式接口 |
3. 功能说明
3.1. 图计算模型与 Pregel 式执行
LangGraph 的设计由 LangChain 首位员工 Nuno Campos 主导,明确借鉴了两个系统:
- Pregel:Google 用于网页图处理的批量同步并行(Bulk Synchronous Parallel)框架;
- Apache Beam:统一批处理与流处理的数据处理模型。
落到执行语义上就是:智能体控制流 = 带显式循环的有向图 + 共享状态对象 + Pregel 式执行循环(一个 superstep 内所有节点的写入,在下个 superstep 开始时统一可见)。
这个模型的直接产物是四件其他框架很难做到的事:
- 确定性分支(条件边由 state 决定,可断言);
- 循环(LCEL 做不到的事);
- 检查点(每个 superstep 天然是保存点);
- 崩溃后从检查点续跑。
3.2 State / Node / Edge / Graph
| 抽象 | 职责 | 工程含义 |
|---|---|---|
| State | 带类型的共享状态对象 | 状态 schema 是设计契约,所有节点围绕它编写 |
| Node | 函数或 LLM 调用 | 接收 state,返回增量更新 |
| Edge | 转移关系 | 固定边 = 确定路径;条件边 = 按 state 路由 |
| Graph Compiler | 编译为可执行图 | 编译期即可发现孤立节点、类型不匹配 |
核心导出概念仅四个(state / node / edge / compiler)加一个持久化层(checkpointers + stores),却支撑起绝大多数生产行为——这是 LangGraph 设计上最被称道的一点。
3.3 Checkpointer 与持久化
| 后端 | 适用 | 说明 |
|---|---|---|
InMemorySaver | 开发 / 测试 | 内存态,进程重启即失 |
SqliteSaver | 单机生产 | 轻量持久化 |
| 生产级后端 | 分布式生产 | 由 LangSmith Deployment 或自建承接 |
Checkpointer 带来的三个能力:
- Durable Execution:崩溃后从最近检查点恢复,不重跑整个任务;
- 多 Thread 支持:同一图可并发服务多个会话;
- Time Travel:回溯到任意历史检查点重跑。
3.4 Human-in-the-loop 与 Time Travel
- Interrupt:可在任意节点暂停,等待人工审批或编辑 state,然后恢复;
- 适用场景:不可逆或后果重大的动作之前(对外付款、生产变更、外发邮件);
- Time Travel:基于检查点回溯,是「调试智能体」而非「调试提示词」的关键能力。
这两项合起来,是 LangGraph 在「可预测性」这一端最硬的证据。
3.5 LangSmith 三件套
| 能力 | 内容 |
|---|---|
| Observability | 详细 tracing + 聚合趋势指标,看清智能体的思考与行动 |
| Evaluation | 在生产数据与离线数据集上测试并打分,支持持续改进 |
| Deployment | 一键部署(原 LangGraph Platform,2025-10 并入),为长任务设计的可扩展基础设施 |
| Agent Builder | 无代码 text-to-agent,降低构建门槛(私有预览) |
| Insights Agent | 自动归类智能体行为模式 |
关键设计取向:LangSmith 是开放的——即使智能体不是用 LangChain / LangGraph 构建的,也可以使用 LangSmith。
3.6 已知工程成本
公开评测坦率指出了 LangGraph 的三项代价:
- 工程重:开发者要自行设计 state schema、node 函数、edges、checkpointer 后端、HITL 中断点;独立开发者往往无力承担维护成本。
- 没有业务工作台:LangGraph 给的是智能体运行时,不是任务板、聊天 UI、CRM 或邮件发件箱——面向真实用户的「前门」全部要自建。
- 不保护成本:一个配置错误的循环可以在被察觉之前自我提示数百次迭代;成本护栏要自己建。
4. 平台架构
图 4-1|LangGraph 三件套分层架构:从 LangSmith 平台到执行面
数据来源:基于本文分析绘制的示意图。
4.1 三件套分层架构
┌──────────────────────────────────────────────────────────┐
│ LangSmith(商业平台) │
│ Observability(tracing + 聚合指标 + Insights Agent) │
│ Evaluation(生产数据 + 离线数据集打分) │
│ Deployment(原 LangGraph Platform,长任务基础设施) │
│ Agent Builder(无代码,私有预览) │
│ Enterprise:自托管 / 混合 / SSO / RBAC-ABAC / SLA │
└──────────────────────────────────────────────────────────┘
│(可独立使用,不强绑定)
┌──────────────────────────────────────────────────────────┐
│ LangGraph(MIT) │
│ Graph Compiler(state + node + edge → 可执行图) │
│ ├─ Pregel 式执行循环(superstep 批量同步) │
│ ├─ Checkpointer(InMemorySaver / SqliteSaver / 生产后端) │
│ ├─ Store(跨会话记忆) │
│ ├─ Interrupt(HITL 暂停 / 恢复) │
│ └─ Streaming(token 级)+ Moderation hooks │
└──────────────────────────────────────────────────────────┘
│
┌──────────────────────────────────────────────────────────┐
│ LangChain(开源构建库,1.0 由 LangGraph 运行时驱动) │
│ 模型集成 · 检索器 · 工具 · 记忆后端 │
└──────────────────────────────────────────────────────────┘
│
┌──────────────────────────────────────────────────────────┐
│ 执行面(需自建 / 外挂) │
│ 沙箱(如 Daytona)· 向量库 · 业务工作台 · 成本护栏 │
└──────────────────────────────────────────────────────────┘ 4.2 一次带中断的图执行
- 编译图,指定 checkpointer 与 thread id;
- 进入 superstep N:并行执行本轮就绪节点,写入暂存区;
- superstep 结束:checkpointer 落盘检查点;
- 若下一节点标了 interrupt:执行暂停,状态冻结在检查点;
- 人工审批或编辑 state;
- 恢复执行:从检查点继续,进入 superstep N+1;
- 无节点就绪 → 图结束;
- 若中途崩溃:以 thread id 从最近检查点 resume,不重跑。
5. Harness 设计
5.1. 六层能力总览
| 层 | 名称 | 实现强度 | 判断依据 |
|---|---|---|---|
| L1 | 上下文工程 | 中 | 显式 state 让上下文可见可控;Store 提供跨会话记忆;压缩与检索排序需自建 |
| L2 | 工具与执行 | 强 | 工具即节点,与 LangChain 集成成熟;沙箱不内置,需外挂 |
| L3 | 编排与控制 | 本组最强 | 显式图 + 显式循环 + 条件分支 + durable execution + interrupt + time travel |
| L4 | 记忆与状态 | 强 | Checkpointer(检查点 / thread)+ Store(跨会话)+ time travel |
| L5 | 评估与观测 | 强(需 LangSmith) | Observability + Evaluation + Deployment 三件套齐备;不属于 MIT 开源部分 |
| L6 | 治理与安全 | 中弱 | Moderation hooks;Enterprise 才有 SSO / RBAC-ABAC;无审批队列、无金额护栏 |
5.2. L1 上下文工程层
LangGraph 在 L1 上的贡献是让上下文成为显式数据结构:
- State 是有 schema 的对象,进上下文的每一份内容都要先写进 state;
- 这让上下文裁剪、优先级排序、注入策略变成可编程的代码,而不是提示词里的玄学;
- Store 提供跨会话记忆,用于「丰富、个性化的交互」。
短板:
- 无内置上下文压缩(Compaction);
- 无内置检索排序原语(RAG 需靠 LangChain 检索器或自建);
- 无渐进式披露机制(对比 Claude Agent SDK 的 Skills)。
5.3. L2 工具与执行层
- 工具形态:工具即节点;也可作为节点内部的能力被调用;
- 集成成熟度:模型、检索器、工具、记忆后端的集成是三者中最成熟的;
- 沙箱:不内置。公开案例中 LangGraph 系产品(如 Open SWE)使用外部沙箱(Daytona)实现执行隔离。
L2 的评价是「强但不完整」——工具编排能力一流,执行隔离要外挂。
5.4. L3 编排与控制层
这是 LangGraph 的立身之本,也是本组七个平台中 L3 最强的实现。
| 能力 | LangGraph | Claude Agent SDK | OpenAI Agents SDK | ADK |
|---|---|---|---|---|
| 控制流可见性 | 显式图,完全可见 | 隐式循环 | 隐式 handoff | 层次 + 工作流智能体 |
| 显式循环 | 支持 | 循环但不可见 | 无 | LoopAgent |
| 条件分支 | 条件边,可断言 | 无原语 | 无原语 | 靠层次嵌套 |
| 崩溃恢复 | 检查点续跑 | Session resume | Session | Session |
| 中途暂停 | Interrupt(任意节点) | Hooks / canUseTool | 无原生 | LongRunning + callback |
| 状态回溯 | Time Travel | 文件检查点 | 无 | Artifact 版本 |
灵活性 ↔ 可预测性的张力,LangGraph 站在这根轴的可预测性端点:
- 换来的:执行顺序可断言、可回归、可回放、可 time travel;
- 付出的:必须预先枚举路径,开放式任务的控制流设计成本极高;图会成为新的复杂度源。
同一根轴的另一端是 Claude Agent SDK 的隐式循环,中间是 OpenAI Agents SDK 的 handoff。三者没有优劣,只有任务形态的匹配度差异。
5.5. L4 记忆与状态层
| 能力 | 载体 | 说明 |
|---|---|---|
| 运行内状态 | State | 带 schema,节点间传递 |
| 检查点 | Checkpointer | 每个 superstep 落盘,崩溃恢复基础 |
| 会话标识 | Thread | 同一 thread 共享检查点历史 |
| 跨会话记忆 | Store | 实现跨会话的个性化 |
| 历史回溯 | Time Travel | 从历史检查点重跑 |
这是本组中与 ADK 并列最强的 L4。差别在于:ADK 额外区分了「会话态 / 长期记忆 / 工件」三类对象并把工件做了版本管理;LangGraph 则把所有状态统一在 State + Checkpoint + Store 的模型里,心智负担更低但语义更粗。
5.6. L5 评估与观测层
严格拆分:
| 部分 | 归属 | 强度 |
|---|---|---|
| Tracing | LangSmith Observability | 强 |
| 聚合趋势指标 | LangSmith Observability | 强 |
| 离线评估 / 生产数据评估 | LangSmith Evaluation | 强 |
| 部署 | LangSmith Deployment | 强 |
| 自动行为归类 | Insights Agent | 中 |
重要限定:这些能力不在 MIT 开源范围内。Developer 档 $0 / 席位但只有 5,000 base traces / 月;Plus $39 / 席位;RBAC-ABAC 与自托管仅 Enterprise。
因此本平台的 L5 判断为「强(需 LangSmith)」——若团队只用开源 LangGraph 而不接 LangSmith,L5 反而是缺失的,比 Claude Agent SDK 的 Hooks 导出方案还要弱(后者至少有导出点)。
5.7. L6 治理与安全层
| 治理能力 | 实现方式 | 强度 |
|---|---|---|
| 内容治理 | Moderation hooks(「防止智能体跑偏」) | 中 |
| 身份与权限 | Enterprise 档提供自定义 SSO、RBAC / ABAC | 中(仅付费档) |
| 运行支持 | Enterprise 档提供支持 SLA | 中 |
| 人工审批 | Interrupt(机制层面完备,无开箱审批 UI) | 中强(机制) |
| 成本护栏 | 无 | 缺失 |
| 审计报表 | 靠 trace 自建 | 弱 |
成本 ↔ 深度的张力在本平台被公开评测点名:「它不保护你的成本。一个有状态图里配置错误的循环,可以在你察觉之前自我提示数百次迭代。成本护栏要你自己建。」
这句话应当作为任何 LangGraph 上线检查清单的第一条。
5.8. 三条内在张力的具体表现
| 张力 | 在本平台的体现 | 缓解手段 |
|---|---|---|
| 灵活性 ↔ 可预测性 | 显式图换可控:控制流完全可见可断言,但需预先枚举路径,开放式任务设计成本极高 | 混合设计:主干用图,探索性子任务下沉为节点内的自主循环 |
| 开放性 ↔ 治理 | 与 MCP、第三方模型与向量库广泛集成,互操作性强;但每个集成都是新出口,框架侧无统一拦截 | 在节点边界统一做入参出参校验;接入 LangSmith 做行为归类 |
| 成本 ↔ 深度 | 深度链路(长图 + 多次迭代)成本高;框架明确不提供成本护栏 | 自建:迭代次数上限、每 thread 预算计数、LangSmith 用量告警 |
6. 实际案例
案例一:Open SWE(LangChain 官方开源异步编码智能体)
架构为专门化组件分工:Manager(用户交互)→ Planner(代码库调研与执行策略)→ Programmer-Reviewer 对(实现与校验)。关键创新点:
- Human-in-the-loop 计划评审(计划先经人工确认再实现);
- "double texting"(实时反馈,运行中途追加指令);
- 深度 GitHub 集成(跟踪 issue);
- 在 Daytona 隔离沙箱中运行,保障安全;
- 严格的 plan-review-implement 循环,PR 产出前完成规划与质检。
案例二:Open Deep Research(2025-07-16 开源)
LangGraph 实现的三阶段管线:scope(范围界定)→ research(检索研究)→ write(撰写),支持可插拔模型、搜索工具与 MCP 服务器。这是「把研究方法固化成图」的典型示例。
案例三:生产级客户验证(v1.0 公告)
LangChain 官方在 1.0 发布公告中列明:Uber、LinkedIn、Klarna 已在生产中使用;Replit、Clay、Harvey、Rippling、Cloudflare、Workday、Cisco 等为其客户。官方对 1.0 的定性是「把已在 Uber、LinkedIn、Klarna 验证过的模式固化下来,而非塞入新功能」。
案例四:NVIDIA 用 LangGraph Platform CLI 训练智能体(第三方报道)
NVIDIA 提出用合成数据生成 + 带可验证奖励的强化学习(RLVR)训练 CLI 任务智能体,使大推理模型在无需真实日志的前提下安全学习操作 LangGraph CLI;Group Relative Policy Optimization 降低训练显存占用最高约 80%。该智能体运行在human-in-the-loop 框架中,采用多层安全架构(运行时检查 + 执行隔离)防止注入攻击。该案例来自第三方聚合站,非官方发布,标 。
未检索到公开量化数据的部分:上述案例均未公布成本下降百分比、任务成功率提升、人力替代率等可验证指标。Uber / LinkedIn / Klarna 的具体部署规模与效果数据亦未检索到官方披露,此处如实标注,不做补全。
7. 总结
7.1. 优势
- L3 最强:显式图 + 显式循环 + 条件边 + 检查点 + interrupt + time travel,控制流完全工程化。
- Durable Execution:崩溃恢复与长时间暂停续跑是本组中最可靠的实现。
- L4 完整:Checkpointer + Thread + Store + Time Travel 四件套。
- MIT 许可、无运行时锁定:库免费、可任意自托管;只有 LangSmith 的追踪、评估与托管部署收费。
- 生态成熟:模型、检索器、工具、记忆后端集成最完整;9,000 万月下载量。
- 商业验证充分:35% Fortune 500、2025 ARR 翻倍、$1.25B 估值、LangSmith trace 量同比 12 倍。
- 1.0 后无破坏性变更:明确承诺至 2.0 不做 breaking change,适合生产锁定。
7.2. 劣势
- 工程重:state schema、node、edge、checkpointer、interrupt 全部要自行设计维护。
- 无业务工作台:任务板、聊天 UI、CRM、邮件等面向用户的前门全部自建。
- 不保护成本:误配置循环可自我提示数百次,成本护栏需自建——这是最严重的生产风险。
- L5 依赖商业组件:不接 LangSmith 则评估与观测基本缺失。
- 无沙箱:执行隔离需外挂(如 Daytona)。
- L6 弱:Moderation hooks 之外,无审批队列、无金额护栏、RBAC 仅 Enterprise。
- 开放式任务代价高:必须预先枚举路径,与探索性任务天然不匹配。
7.3. 适用边界
| 场景 | 是否适用 | 理由 |
|---|---|---|
| 需要跑数小时、等待外部事件、干净恢复的智能体 | 最适用 | Durable execution 是标准答案 |
| 需要执行顺序可断言、可回归的流程 | 最适用 | 显式图 + time travel |
| 不可逆动作前需人工审批 | 适用 | Interrupt 机制完备 |
| 需要长时间跨会话个性化的产品 | 适用 | Store 跨会话记忆 |
| 开放探索式研究任务 | 需权衡 | 图为控制流带来的收益低于设计成本 |
| 小团队 / 独立开发者 | 不适用 | 工程负担过重 |
| 需要开箱即用业务工作台 | 不适用 | 前门全自建 |
7.4. 选型建议
- 若团队的核心诉求是可控、可恢复、可回放,LangGraph 是本组中的首选,与 Claude Agent SDK 的隐式循环形成明确对照:前者换可预测性,后者换灵活性。
- 若已在用 LangChain 生态,LangGraph 的迁移与集成成本最低。
- 若只想搭一个三角色的简单流水线,CrewAI 类角色框架代码量更少;若完全不想思考图,应选 Agent Platform(详见
05-dify.md)。 - 上线前必须自建三项:迭代次数硬上限、按 thread 的预算计数与告警、执行沙箱。
信息缺口声明
- GitHub star 数口径冲突:一处第三方统计为 39,176 stars(2026-08),另一处称 langchain + langgraph 合计约 118,000 stars,未能统一,标 。
- 最新版本:第三方时间线称 LangGraph 1.2 于 2026-05-12 发布,未与官方发布页核对,标 。
- LangSmith 定价细节:Developer / Plus / Enterprise 三档价格来自第三方整理,计量单价($1.50 / Compute Unit、$1.00 / Storage Unit)为第三方口径,未与官方价目页逐项核对,标 。
- 具体模型单价:未纳入本次检索范围,标 。
- NVIDIA 案例:来自第三方聚合站,未见 NVIDIA 或 LangChain 官方发布,全部数据标 。
- 企业落地量化数据:Uber / LinkedIn / Klarna 等客户的部署规模、成本收益、成功率均未检索到官方量化披露,未做补全。
- 沙箱方案细节:Daytona 等外部沙箱的集成方式与版本兼容情况未做专项检索。
- LangChain 1.0 与 LangGraph 运行时的关系细节:官方称 langchain 1.0「由 langgraph 运行时驱动」,具体实现机制未做源码级验证。
8. 参考资料
- LangChain raises $125M to build the platform for agent engineering — LangChain Blog, 2025-10。http://blog.langchain.com/series-b
- LangGraph — AI Wiki(含完整版本时间线与 Pregel / Apache Beam 设计来源)。https://aiwiki.ai/wiki/langgraph
- LangGraph — Beri.net(MIT 许可、定价、客户、GitHub 规模)。https://beri.net/tools/langgraph
- LangGraph Review — Sistava(工程成本与适用边界的坦率评价)。https://sistava.com/en/ai-agent-platform-reviews/dev-frameworks/langgraph
- LangGraph — agentjido 产品页(Open SWE、NVIDIA、Gemini 3 集成等动态)。http://agentjido.ai/product/?product_id=3913
- LangChain 官方网站与定价页。https://www.langchain.com/ ;https://www.langchain.com/pricing
- R05-数据科学组检索报告(Open Deep Research 2025-07-16 三阶段管线)— 本项目内部检索报告。
- R03-硬件研发组检索报告(LangGraph 多智能体控制流在芯片设计链路中的应用)— 本项目内部检索报告。
- R01-概述检索报告(Framework / Harness / Agent 三层区分)— 本项目内部检索报告。
- 项目参数卡 v1.0(六层能力模型与概念边界)— 本项目内部基准文件。
LangGraph / LangChain / LangSmith
1. Introduction
1.1. Positioning of the Three
LangChain's product line consists of three parts, and understanding how they divide up the work is a prerequisite for understanding their Harness positioning:
| Component | Positioning | Open Source / Commercial |
|---|---|---|
| LangChain | Quick-start building library, fully rewritten in 1.0, driven by the LangGraph runtime | Open source |
| LangGraph | Low-level orchestration framework: controls each step, memory, human-in-the-loop, durable execution for long tasks | Open source (MIT) |
| LangSmith | Agent engineering platform: observability, evaluation, deployment, Agent Builder | Commercial (with a free development tier) |
In one sentence, the relationship among the three is: LangChain provides the bricks, LangGraph provides the structure, and LangSmith provides the dashboard.
LangGraph's birth had a clear engineering motivation. LangChain's early Agent Executor was a black box: receive a query → call the LLM → parse the tool name → execute the tool → feed back the observation → repeat until the model gives a final answer. This loop could not be inspected mid-run, could not persist state across calls, could not insert a human in the middle of a long task, and could not branch. The subsequently introduced LCEL (LangChain Expression Language) simplified component wiring, but it was by design a directed acyclic graph and could not loop.
LangGraph was built precisely to fill in these three things: explicit looping, persistable state, and human-in-the-loop.
1.2. Basic Facts Card
| Item | Content | Confidence |
|---|---|---|
| Developer | LangChain, Inc. (San Francisco; founders Harrison Chase, Ankush Gola) | High |
| LangChain open-source start | 2022-10 (Harrison Chase's first commit) | High |
| LangGraph first public release | 2024-01-08 | High |
| LangGraph 1.0 | 2025-10-22 | High (official blog) |
| Latest version | Third-party source: LangGraph 1.2 (2026-05-12); the version changes with the release cadence, marked [To be verified] | Medium |
| License | MIT (LangGraph library) | High |
| GitHub scale | Third-party stats: 39,176 stars / 6,587 forks / 673 open issues (2026-08); another source states langchain + langgraph total roughly 118,000 stars | Medium, conflicting sources, marked [To be verified] |
| Funding | Series A $25M (Sequoia, 2024-02, valuation $200M); Series B $125M (led by IVP, 2025-10, valuation $1.25B); roughly $260M cumulative | High (official blog + hard project data) |
| Commercial scale | 2025 ARR doubled; serves 35% of the Fortune 500; langchain + langgraph total 90M monthly downloads; LangSmith monthly trace volume up 12x year-over-year | High (official blog + hard project data) |
| Pricing (LangSmith) | Developer $0 / seat (5,000 base traces / month); Plus $39 / seat (10,000 traces + 1 free Serverless(Small) deployment); Enterprise custom (self-hosted / hybrid / custom SSO / RBAC-ABAC / support SLA) | Medium-high |
| Metered pricing | Hosted compute $1.50 / LangChain Compute Unit; storage $1.00 / LangChain Storage Unit | Medium |
| Notable customers | Klarna, LinkedIn, Uber, Cisco, Workday, Coinbase, Rippling, Lyft, Harvey, Abridge, Autodesk, Bristol Myers Squibb, Replit, Clay, Cloudflare | High (official blog) |
1.3. Development Timeline
| Time | Event | Source Level |
|---|---|---|
| 2022-10 | First commit of the LangChain open-source project | A |
| Early 2023 | LangChain, Inc. founded | A |
| 2024-01-08 | LangGraph first public release | A |
| 2024-02 | Series A $25M (Sequoia, valuation $200M) | A |
| 2024-06 | LangGraph 0.1 / LangGraph Cloud beta | B |
| 2025-01-29 | Functional API released | B |
| 2025-05 | LangGraph Platform GA | B |
| 2025-07-16 | Open Deep Research open-sourced (three-stage pipeline implemented in LangGraph) | A |
| 2025-09-08 | LangChain 1.0 alpha | B |
| 2025-10-22 | LangGraph 1.0 + LangChain 1.0 released; the same day announced $125M Series B (valuation $1.25B) | A (official blog) |
| 2025-10 | LangGraph Platform merged into LangSmith, becoming a Deployment feature | A |
| 2026-03-10 | LangGraph 1.1 | B |
| 2026-05-12 | LangGraph 1.2 | B |
LangChain officially positions 1.0 as a "stability milestone rather than feature stacking", quoting: "This is the first stable major release in the durable agent framework space, a major milestone for production-ready AI systems." It also states that after 1.0 it will follow a strict no-breaking-changes policy until the hypothetical 2.0.
1.4. Position in the AI Harness System
According to the parameter card boundary table, LangGraph is a typical representative of the Agent Framework — primarily covering L2/L3, i.e. a subset of the Harness. But LangGraph's actual coverage is broader than a typical framework: it reaches L4 through the Checkpointer and Store, and L5 through LangSmith.
Key assessment:
- The LangGraph library itself = part of L2 + L3 + L4;
- LangSmith = L5 (+ some L6 RBAC / SSO, Enterprise only);
- Together, the two form the combination closest to a complete Harness in today's open-source ecosystem, but L6 governance and cost guardrails remain largely absent.
2. Glossary
| Term | English / Abbreviation | Definition |
|---|---|---|
| LangGraph | LangGraph | The low-level orchestration framework produced by LangChain, which models agents as a directed graph of nodes and edges and supports explicit looping |
| State | State | Shared, typed state object; every LangGraph application is built around it, and nodes read/write it to pass information |
| Node | Node | A step in the graph, usually a function or an LLM call; receives state and returns a state update |
| Edge | Edge | The transition relationship between nodes; can be a fixed edge or a conditional edge decided by state |
| Graph Compiler | Graph Compiler | The component that compiles state / node / edge definitions into an executable graph |
| Checkpointer | Checkpointer | The persistence-layer component responsible for saving state after every superstep; InMemorySaver for memory, SqliteSaver for persistence |
| Checkpoint | Checkpoint | A snapshot of state at a given moment; the foundation for crash recovery, pause-and-resume, and time travel |
| Thread | Thread | The session identifier of a run; multiple runs under the same thread share checkpoint history |
| Superstep | Superstep | The basic unit of Pregel-style execution: the writes of all nodes within one superstep become uniformly visible at the start of the next superstep |
| Durable Execution | Durable Execution | Persistent execution: a crashed or paused agent can resume from the most recent checkpoint instead of rerunning from scratch |
| Interrupt | Interrupt | Pausing graph execution at any node to await approval or editing, then resuming |
| Human-in-the-loop | HITL | Human-machine collaboration: a pattern of inserting human judgment mid-execution |
| Time Travel | Time Travel | The ability to go back to a historical checkpoint and re-execute from that point |
| Store | Store | Cross-session memory storage, used to achieve cross-session personalization |
| Streaming | Streaming | Native token-level streaming output, presenting agent reasoning and tool calls in real time |
| Moderation Hook | Moderation hooks | Content moderation hooks used to "prevent the agent from going off the rails" |
| LangSmith | LangSmith | Commercial agent engineering platform: observability, evaluation, deployment, Agent Builder |
| Trace | Trace | Complete trajectory record of a run, including each step's inputs, outputs, and token usage |
| Deployment | Deployment | LangSmith's deployment capability, formerly LangGraph Platform, merged in 2025-10 |
| Insights Agent | Insights Agent | An agent in LangSmith's observability module that automatically classifies agent behavior patterns |
| Agent Builder | Agent Builder | Code-free text-to-agent builder (private preview) |
| LCEL | LangChain Expression Language | LangChain's pipeline-style composition syntax, designed as a DAG, cannot loop — precisely why LangGraph exists |
| Functional API | Functional API | LangGraph's functional interface introduced on 2025-01-29 |
3. Feature Description
3.1. Graph Computing Model and Pregel-style Execution
LangGraph's design was led by Nuno Campos, the first employee of LangChain, and explicitly drew on two systems:
- Pregel: Google's Bulk Synchronous Parallel framework for processing web graphs;
- Apache Beam: a data processing model unifying batch and stream processing.
In execution semantics this translates to: agent control flow = a directed graph with explicit looping + a shared state object + a Pregel-style execution loop (the writes of all nodes in one superstep become uniformly visible at the start of the next).
The direct product of this model is four things that other frameworks struggle to do:
- Deterministic branching (conditional edges are decided by state and are assertable);
- Looping (something LCEL could not do);
- Checkpointing (every superstep is naturally a save point);
- Resuming from a checkpoint after a crash.
3.2 State / Node / Edge / Graph
| Abstraction | Responsibility | Engineering Implication |
|---|---|---|
| State | Typed, shared state object | The state schema is a design contract; all nodes are written around it |
| Node | A function or LLM call | Receives state, returns incremental updates |
| Edge | Transition relationship | Fixed edge = deterministic path; conditional edge = routing by state |
| Graph Compiler | Compiles into an executable graph | Can detect orphaned nodes and type mismatches at compile time |
Only four core exported concepts (state / node / edge / compiler) plus one persistence layer (checkpointers + stores) support the vast majority of production behavior — this is one of the most praised aspects of LangGraph's design.
3.3 Checkpointer and Persistence
| Backend | Use Case | Description |
|---|---|---|
InMemorySaver | Development / Testing | In-memory; lost when the process restarts |
SqliteSaver | Single-machine production | Lightweight persistence |
| Production-grade backend | Distributed production | Handled by LangSmith Deployment or self-built |
The three capabilities the Checkpointer brings:
- Durable Execution: recovers from the most recent checkpoint after a crash without rerunning the whole task;
- Multi-Thread support: the same graph can concurrently serve multiple sessions;
- Time Travel: go back to any historical checkpoint and rerun.
3.4 Human-in-the-loop and Time Travel
- Interrupt: you can pause at any node, wait for a human to approve or edit the state, then resume;
- Use cases: before irreversible or high-consequence actions (external payments, production changes, outgoing email);
- Time Travel: based on checkpoint rollback, it is the key capability for "debugging the agent" rather than "debugging the prompt".
These two together are the strongest evidence for LangGraph on the "predictability" side.
3.5 The LangSmith Trio
| Capability | Content |
|---|---|
| Observability | Detailed tracing + aggregated trend metrics, to see the agent's thinking and actions |
| Evaluation | Test and score on production data and offline datasets, supporting continuous improvement |
| Deployment | One-click deployment (formerly LangGraph Platform, merged in 2025-10), scalable infrastructure designed for long tasks |
| Agent Builder | Code-free text-to-agent, lowering the barrier to building (private preview) |
| Insights Agent | Automatically classifies agent behavior patterns |
Key design orientation: LangSmith is open — even if an agent is not built with LangChain / LangGraph, it can still use LangSmith.
3.6 Known Engineering Costs
Public evaluations candidly pointed out LangGraph's three costs:
- Heavy engineering: developers must design the state schema, node functions, edges, checkpointer backend, and HITL interrupt points themselves; independent developers are often unable to bear the maintenance cost.
- No business workbench: LangGraph provides an agent runtime, not a task board, chat UI, CRM, or email inbox — all the "front doors" facing real users must be built yourself.
- No cost protection: a misconfigured loop can self-prompt for hundreds of iterations before it is noticed; cost guardrails must be built by you.
4. Platform Architecture
图 4-1|LangGraph 三件套分层架构:从 LangSmith 平台到执行面
数据来源:基于本文分析绘制的示意图。
4.1 Layered Architecture of the Three
┌──────────────────────────────────────────────────────────┐
│ LangSmith(商业平台) │
│ Observability(tracing + 聚合指标 + Insights Agent) │
│ Evaluation(生产数据 + 离线数据集打分) │
│ Deployment(原 LangGraph Platform,长任务基础设施) │
│ Agent Builder(无代码,私有预览) │
│ Enterprise:自托管 / 混合 / SSO / RBAC-ABAC / SLA │
└──────────────────────────────────────────────────────────┘
│(可独立使用,不强绑定)
┌──────────────────────────────────────────────────────────┐
│ LangGraph(MIT) │
│ Graph Compiler(state + node + edge → 可执行图) │
│ ├─ Pregel 式执行循环(superstep 批量同步) │
│ ├─ Checkpointer(InMemorySaver / SqliteSaver / 生产后端) │
│ ├─ Store(跨会话记忆) │
│ ├─ Interrupt(HITL 暂停 / 恢复) │
│ └─ Streaming(token 级)+ Moderation hooks │
└──────────────────────────────────────────────────────────┘
│
┌──────────────────────────────────────────────────────────┐
│ LangChain(开源构建库,1.0 由 LangGraph 运行时驱动) │
│ 模型集成 · 检索器 · 工具 · 记忆后端 │
└──────────────────────────────────────────────────────────┘
│
┌──────────────────────────────────────────────────────────┐
│ 执行面(需自建 / 外挂) │
│ 沙箱(如 Daytona)· 向量库 · 业务工作台 · 成本护栏 │
└──────────────────────────────────────────────────────────┘ 4.2 A Graph Run with an Interrupt
- Compile the graph, specifying the checkpointer and thread id;
- Enter superstep N: execute this round's ready nodes in parallel, writing to the staging area;
- Superstep ends: the checkpointer persists a checkpoint;
- If the next node is marked as an interrupt: execution pauses, and the state is frozen at the checkpoint;
- A human approves or edits the state;
- Resume execution: continue from the checkpoint and enter superstep N+1;
- When no nodes are ready → the graph ends;
- If it crashes midway: resume from the most recent checkpoint by thread id, without rerunning.
5. Harness Design
5.1. Six-Layer Capability Overview
| Layer | Name | Implementation Strength | Basis for Assessment |
|---|---|---|---|
| L1 | Context engineering | Medium | Explicit state makes context visible and controllable; Store provides cross-session memory; compaction and retrieval ranking must be built yourself |
| L2 | Tools and execution | Strong | Tools are nodes, with mature LangChain integration; no built-in sandbox, requires external attachment |
| L3 | Orchestration and control | Strongest in this group | Explicit graph + explicit looping + conditional branching + durable execution + interrupt + time travel |
| L4 | Memory and state | Strong | Checkpointer (checkpoints / thread) + Store (cross-session) + time travel |
| L5 | Evaluation and observability | Strong (requires LangSmith) | The Observability + Evaluation + Deployment trio is complete; not part of the MIT open-source portion |
| L6 | Governance and security | Medium-weak | Moderation hooks; SSO / RBAC-ABAC only with Enterprise; no approval queue, no spend guardrails |
5.2. L1 Context Engineering Layer
LangGraph's contribution at L1 is to make context an explicit data structure:
- State is an object with a schema; every piece of content that enters context must first be written into state;
- This turns context trimming, priority sorting, and injection policy into programmable code rather than prompt mysticism;
- Store provides cross-session memory, used for "rich, personalized interactions".
Shortcomings:
- No built-in context compaction (Compaction);
- No built-in retrieval ranking primitives (RAG relies on LangChain retrievers or is self-built);
- No progressive disclosure mechanism (compared with Claude Agent SDK's Skills).
5.3. L2 Tools and Execution Layer
- Tool form: tools are nodes; they can also be invoked as capabilities inside a node;
- Integration maturity: the integration of models, retrievers, tools, and memory backends is the most mature of the three;
- Sandbox: not built in. In public cases, LangGraph-family products (such as Open SWE) use external sandboxes (Daytona) for execution isolation.
L2 is rated "strong but incomplete" — tool orchestration is first-rate, but execution isolation must be attached externally.
5.4. L3 Orchestration and Control Layer
This is LangGraph's raison d'être, and the strongest L3 implementation among the seven platforms in this group.
| Capability | LangGraph | Claude Agent SDK | OpenAI Agents SDK | ADK |
|---|---|---|---|---|
| Control flow visibility | explicit graph, fully visible | implicit loop | implicit handoff | hierarchical + workflow agents |
| Explicit looping | supported | loops but not visible | none | LoopAgent |
| Conditional branching | conditional edges, assertable | no primitive | no primitive | via hierarchical nesting |
| Crash recovery | resume from checkpoint | Session resume | Session | Session |
| Mid-run pause | Interrupt (any node) | Hooks / canUseTool | no native | LongRunning + callback |
| State rollback | Time Travel | file checkpoints | none | Artifact versions |
Flexibility ↔ predictability tension: LangGraph sits at the predictability endpoint of this axis:
- What it gains: execution order that is assertable, regressable, replayable, and time-travelable;
- What it pays: paths must be enumerated in advance, and designing control flow for open-ended tasks is extremely costly; the graph becomes a new source of complexity.
At the other end of the same axis is Claude Agent SDK's implicit loop; in the middle is OpenAI Agents SDK's handoff. There is no better or worse among the three — only differences in how well each matches a given task shape.
5.5. L4 Memory and State Layer
| Capability | Carrier | Description |
|---|---|---|
| In-run state | State | Has a schema, passed between nodes |
| Checkpoints | Checkpointer | Persists at every superstep, basis for crash recovery |
| Session identifier | Thread | The same thread shares checkpoint history |
| Cross-session memory | Store | Achieves cross-session personalization |
| History rollback | Time Travel | Rerun from a historical checkpoint |
This L4 is tied with ADK as the strongest in this group. The difference: ADK additionally distinguishes three kinds of objects — "session state / long-term memory / artifacts" — and version-manages artifacts; LangGraph unifies all state in the State + Checkpoint + Store model, which is lower cognitive overhead but coarser in semantics.
5.6. L5 Evaluation and Observability Layer
Strict breakdown:
| Part | Ascription | Strength |
|---|---|---|
| Tracing | LangSmith Observability | Strong |
| Aggregated trend metrics | LangSmith Observability | Strong |
| Offline / production-data evaluation | LangSmith Evaluation | Strong |
| Deployment | LangSmith Deployment | Strong |
| Automatic behavior classification | Insights Agent | Medium |
Important qualification: these capabilities are not within the MIT open-source scope. The Developer tier is $0 / seat but only 5,000 base traces / month; Plus is $39 / seat; RBAC-ABAC and self-hosting are Enterprise only.
Therefore this platform's L5 is assessed as "strong (requires LangSmith)" — if a team uses only open-source LangGraph without connecting LangSmith, L5 is actually missing, even weaker than Claude Agent SDK's Hooks export approach (which at least has an export point).
5.7. L6 Governance and Security Layer
| Governance Capability | Implementation | Strength |
|---|---|---|
| Content governance | Moderation hooks ("prevent the agent from going off the rails") | Medium |
| Identity and permissions | Enterprise tier offers custom SSO, RBAC / ABAC | Medium (paid tier only) |
| Operations support | Enterprise tier offers support SLA | Medium |
| Human approval | Interrupt (complete at the mechanism level, no out-of-the-box approval UI) | Medium-strong (mechanism) |
| Cost guardrails | None | Missing |
| Audit reports | Self-built from traces | Weak |
The cost ↔ depth tension was called out on this platform by public evaluations: "It does not protect your cost. A misconfigured loop in a stateful graph can self-prompt for hundreds of iterations before you notice. Cost guardrails have to be built by you."
This sentence should be item one of any LangGraph pre-launch checklist.
5.8. Concrete Manifestations of the Three Inherent Tensions
| Tension | Manifestation on this Platform | Mitigation |
|---|---|---|
| Flexibility ↔ predictability | Explicit graph buys control: control flow is fully visible and assertable, but paths must be enumerated in advance, making open-ended task design extremely costly | Hybrid design: use the graph for the main line and sink exploratory subtasks into autonomous loops inside nodes |
| Openness ↔ governance | Broad integration with MCP, third-party models and vector stores with strong interoperability; but each integration is a new exit point, with no unified interception at the framework level | Uniformly validate inputs/outputs at node boundaries; connect LangSmith for behavior classification |
| Cost ↔ depth | Deep pipelines (long graphs + many iterations) are expensive; the framework explicitly provides no cost guardrails | Self-built: iteration-count caps, per-thread budget counters, LangSmith usage alerts |
6. Real-world Cases
Case 1: Open SWE (LangChain's official open-source asynchronous coding agent)
The architecture divides work among specialized components: Manager (user interaction) → Planner (codebase research and execution strategy) → Programmer-Reviewer pair (implementation and verification). Key innovations:
- Human-in-the-loop plan review (the plan is confirmed by a human before implementation);
- "double texting" (real-time feedback, appending instructions mid-run);
- Deep GitHub integration (tracking issues);
- Runs in a Daytona isolated sandbox to ensure security;
- A strict plan-review-implement loop, completing planning and QA before a PR is produced.
Case 2: Open Deep Research (open-sourced 2025-07-16)
A LangGraph-implemented three-stage pipeline: scope (defining scope) → research (retrieval research) → write (writing), supporting pluggable models, search tools, and MCP servers. This is a typical example of "freezing a research methodology into a graph".
Case 3: Production-grade customer validation (v1.0 announcement)
In its 1.0 release announcement, LangChain listed that Uber, LinkedIn, and Klarna are already in production use; Replit, Clay, Harvey, Rippling, Cloudflare, Workday, Cisco, and others are its customers. Officially, 1.0 is characterized as "locking in the patterns already validated at Uber, LinkedIn, and Klarna, rather than cramming in new features".
Case 4: NVIDIA trains agents with the LangGraph Platform CLI (third-party report)
NVIDIA proposes training CLI-task agents with synthetic data generation + reinforcement learning with verifiable rewards (RLVR), so that large reasoning models can safely learn to operate the LangGraph CLI without real logs; Group Relative Policy Optimization reduces training VRAM usage by up to about 80%. The agent runs in a human-in-the-loop framework, using a multi-layer security architecture (runtime checks + execution isolation) to prevent injection attacks. This case comes from a third-party aggregator, not an official release, and all its data is marked [To be verified].
Parts for which no public quantitative data was found: none of the above cases discloses verifiable metrics such as cost-reduction percentages, task-success-rate improvements, or labor-substitution rates. No official disclosure of Uber / LinkedIn / Klarna's specific deployment scale and results was found either; this is truthfully noted here and not filled in.
7. Summary
7.1. Strengths
- Strongest L3: explicit graph + explicit looping + conditional edges + checkpoints + interrupt + time travel, with control flow fully engineered.
- Durable Execution: crash recovery and long-pause resume is the most reliable implementation in this group.
- Complete L4: the Checkpointer + Thread + Store + Time Travel four-piece set.
- MIT license, no runtime lock-in: the library is free and can be arbitrarily self-hosted; only LangSmith's tracing, evaluation, and hosted deployment are paid.
- Mature ecosystem: the most complete integration of models, retrievers, tools, and memory backends; 90M monthly downloads.
- Well-proven commercially: 35% of the Fortune 500, 2025 ARR doubled, $1.25B valuation, LangSmith trace volume up 12x year-over-year.
- No breaking changes after 1.0: an explicit promise of no breaking changes until 2.0, suitable for production lock-in.
7.2. Weaknesses
- Heavy engineering: state schema, nodes, edges, checkpointer, and interrupts must all be designed and maintained by yourself.
- No business workbench: all user-facing front doors — task boards, chat UIs, CRM, email, etc. — must be built from scratch.
- No cost protection: a misconfigured loop can self-prompt hundreds of times, and cost guardrails must be self-built — this is the most serious production risk.
- L5 depends on commercial components: without connecting LangSmith, evaluation and observability are largely absent.
- No sandbox: execution isolation requires external attachment (e.g. Daytona).
- Weak L6: beyond Moderation hooks, there is no approval queue, no spend guardrails, and RBAC is Enterprise only.
- Open-ended tasks are costly: paths must be enumerated in advance, which is inherently mismatched with exploratory tasks.
7.3. Applicability Boundaries
| Scenario | Applicable? | Reason |
|---|---|---|
| Agents that need to run for hours, wait for external events, and recover cleanly | Best suited | Durable execution is the standard answer |
| Processes that need assertable, regressable execution order | Best suited | Explicit graph + time travel |
| Human approval required before irreversible actions | Applicable | The Interrupt mechanism is complete |
| Products needing long-term cross-session personalization | Applicable | Store cross-session memory |
| Open-ended exploratory research tasks | Trade-off needed | The graph's benefit for control flow is lower than the design cost |
| Small teams / independent developers | Not applicable | Engineering burden is too heavy |
| Business workbench needed out of the box | Not applicable | The front doors are entirely self-built |
7.4. Selection Recommendations
- If a team's core need is control, recoverability, and replayability, LangGraph is the first choice in this group, forming a clear contrast with Claude Agent SDK's implicit loop: the former trades for predictability, the latter for flexibility.
- If you already use the LangChain ecosystem, LangGraph's migration and integration cost is the lowest.
- If you just want to build a simple three-role pipeline, CrewAI-style role frameworks need less code; if you don't want to think about graphs at all, choose an Agent Platform instead (see
05-dify.md). - Three things that must be self-built before launch: a hard cap on iteration count, per-thread budget counting and alerts, and an execution sandbox.
Information Gap Statement
- GitHub star count sources conflict: one third-party count is 39,176 stars (2026-08); another states langchain + langgraph total roughly 118,000 stars; they could not be reconciled, marked
[To be verified]. - Latest version: a third-party timeline says LangGraph 1.2 was released on 2026-05-12; it was not cross-checked with the official release page, marked
[To be verified]. - LangSmith pricing details: the Developer / Plus / Enterprise tier prices come from a third-party compilation, and the metered unit prices ($1.50 / Compute Unit, $1.00 / Storage Unit) are third-party sources, not cross-checked item by item against the official pricing page, marked
[To be verified]. - Specific model unit pricing: not within the scope of this search, marked
[To be verified]. - The NVIDIA case: from a third-party aggregator, with no official NVIDIA or LangChain release found; all data is marked
[To be verified]. - Enterprise deployment quantitative data: no official quantitative disclosure of the deployment scale, cost/benefit, or success rates of customers such as Uber / LinkedIn / Klarna was found; nothing was filled in.
- Sandbox solution details: no dedicated search was done on the integration methods and version compatibility of external sandboxes such as Daytona.
- Detail of the relationship between LangChain 1.0 and the LangGraph runtime: officially, langchain 1.0 is said to be "driven by the langgraph runtime", but the specific implementation mechanism was not verified at the source-code level.
8. References
- LangChain raises $125M to build the platform for agent engineering — LangChain Blog, 2025-10. http://blog.langchain.com/series-b
- LangGraph — AI Wiki (includes the full version timeline and the Pregel / Apache Beam design sources). https://aiwiki.ai/wiki/langgraph
- LangGraph — Beri.net (MIT license, pricing, customers, GitHub scale). https://beri.net/tools/langgraph
- LangGraph Review — Sistava (a candid review of engineering costs and applicability boundaries). https://sistava.com/en/ai-agent-platform-reviews/dev-frameworks/langgraph
- LangGraph — agentjido product page (Open SWE, NVIDIA, Gemini 3 integration, and other updates). http://agentjido.ai/product/?product_id=3913
- LangChain official website and pricing page. https://www.langchain.com/; https://www.langchain.com/pricing
- R05-Data Science Group search report (Open Deep Research 2025-07-16 three-stage pipeline) — internal search report for this project.
- R03-Hardware R&D Group search report (application of LangGraph multi-agent control flow in the chip design pipeline) — internal search report for this project.
- R01-Overview search report (the three-layer distinction of Framework / Harness / Agent) — internal search report for this project.
- Project parameter card v1.0 (six-layer capability model and conceptual boundaries) — internal baseline document for this project.