读见

为什么我们围绕智能体重构 LangSmith

原题Why we rebuilt LangSmith around the agent

约 6 分钟约 1,420 字原文英文已翻译

推荐理由LangSmith 将智能体设为贯通追踪、部署、监控和治理的核心对象。平台建设者可借其记录模型理解负责人、成本与质量指标如何跨运行环境汇总,而非继续维护孤立工具。

读前速览

5 个要点

本文阐述了 LangSmith 围绕智能体模型重构的原因,并介绍了一个全新的统一平台,支持构建、运行、改进和治理 AI 智能体,同时引入了新的数据结构、智能体类型和跨平台治理能力。

  1. LangSmith 经过重构,以单一的智能体中心模型整合彼此割裂的智能体开发工作流。

    过去,追踪、监控和部署分散在不同工具中,导致开发者频繁切换上下文,也容易跳过评估步骤。新的智能体记录将生命周期的各个阶段整合到同一处。

  2. 智能体记录新增负责人、ID 和类型等属性,以支持治理并提供定制化体验。

    每个智能体都有全局唯一且不可变的 ID、负责人,以及决定仪表板视图、数据连接和评估标准的类型,从而让各团队能够以一致的方式进行衡量。

  3. 智能体类型可针对不同使用场景提供定制化仪表板和数据连接。

    通用型和编程型智能体会展示合并的 PR 数量、Token 成本等相关指标。未来的语音型等类型则会呈现延迟和音频质量指标,从而实现标准统一、又能适应具体场景的评估。

  4. LangSmith 支持对任何平台上构建的智能体进行跨平台治理。

    借助对 OpenTelemetry 协议的支持,LangSmith 可以注册和监控运行于任何环境中的智能体,包括 ServiceNow 和 Glean 等供应商平台,为平台团队提供统一的监督能力。

  5. 未来路线图包括组织级仪表板、身份集成和自动化反馈闭环。

    计划推出的功能将把红队测试、自定义标注应用和微调工作流关联到智能体记录中,以支持实时监控关键绩效指标,并通过身份提供商实现安全团队审计。

完整摘要

这篇博客文章详细介绍了 LangSmith 的战略转型:将智能体打造为平台的核心对象。为解决智能体开发工作流彼此割裂的问题,LangSmith 引入统一的智能体记录,将追踪、监控、部署和治理连接起来。全新的数据模型为智能体记录加入了负责人、ID 和类型等属性,从而能够针对不同类型的智能体(通用型、编程型、语音型)定制仪表板。LangSmith 支持智能体开发的完整生命周期——构建、运行、改进和治理,并通过 OpenTelemetry 协议兼容任何框架或运行环境。该平台还支持组织级可见性、成本与质量指标汇总,以及未来计划推出的红队测试、自定义标注应用和基于智能体轨迹的微调等功能。

目录 · 7 节

查看原文

上周,我们宣布完成 C 轮融资,并推出全新的 LangSmith Agent Platform:一个用于构建、运行、改进和治理所有智能体的一站式平台。借助这一平台,智能体如今成为 LangSmith 的核心对象,将开发者分散的工作流串联起来,并帮助平台团队统一管理整个业务中的智能体。Last week we announced our series C and introduced the new LangSmith Agent Platform: a single place to build, run, improve, and govern every agent. With this, agents are now the core object across LangSmith, connecting fragmented workflows for developers and enabling platform teams to manage agents across the business.

在这篇文章中,我们将探讨重新组织产品的原因、智能体模型的运作方式、它所带来的可能性,以及我们接下来的发展方向。In this post, we discuss why we reorganized the product, how the agent model works, what it unlocks, and where we're taking it next.

我们为什么要重建 LangSmith?Why did we rebuild LangSmith?

2026年,随着新型运行框架、模型和工程方法的出现,构建能够可靠完成复杂且高价值工作的智能体成为可能,智能体的应用也因此迎来了飞跃式发展。2026 brought a step change in agent adoption as new harnesses, models, and engineering approaches made it possible to build agents that can reliably perform complex, high value work.

如今,企业在业务各个领域都运行着大量智能体:工程团队使用编码智能体,产品团队正在构建面向客户的智能体,组织内各团队也拥有各种用于提升内部效率的智能体。这些智能体基于不同的框架构建,托管在各种运行时环境中,并使用多种工具和模型。Companies now run many agents across the business: engineering uses coding agents, product is building customer-facing agents, and teams across the organization have various internal productivity agents. These agents are built with different frameworks, hosted on various runtimes, and use a variety of tools and models.

最终导致工程师和平台团队的工作流支离破碎。The result is fragmented workflows for both engineers and platform teams.

工程师们需要在彼此割裂的界面之间来回切换。链路追踪、监控和部署各自位于不同的平台上。这迫使团队频繁切换上下文,实际工作中也因此跳过构建评测等困难但重要的步骤。Engineers work across disconnected surfaces. Tracing, monitoring, and deployments all live in different places. This requires frequent context switching, and in practice results in teams skipping difficult but important steps like building the evals.

AI 平台团队很难回答一些基本的治理问题:有哪些智能体?每个智能体由谁负责?它们的成本是多少,表现如何?当成本激增时,往往找不到明确的人来询问究竟发生了什么。AI Platform teams have difficulty answering basic governance questions. Which agents exist, and who owns each of them? What do they cost, and how are they performing? When costs spike, there is often no obvious person to ask what happened.

我们希望让团队能够在一个地方轻松管理整个智能体开发生命周期,无论使用何种技术栈,并对所有环节实现责任归属与治理。We wanted to make it simple for teams to manage the entire agent development lifecycle from one place, using any stack, with ownership and governance across all of it.

覆盖代理开发全生命周期的统一平台One platform for the entire agent development lifecycle

LangSmith 支持完整的智能体开发生命周期:构建、运行、改进和治理。现在,我们通过一条独特的智能体记录将整个流程连接起来。LangSmith supports the entire agent development lifecycle: build, run, improve, and govern. Now, we've connected the entire process through a unique agent record.

  • 构建:使用 LangSmith Studio 中全新的自然语言构建器描述智能体,使用我们的开源执行框架通过代码构建,或使用任何其他框架。
    Build: Describe an agent with the new natural language builder in LangSmith Studio, build in code with our open source harnesses, or use any other framework.
  • 运行:部署到 LangSmith Agent Server,或继续在你现有的运行时中运行该代理。
    Run: Deploy on LangSmith Agent Server or keep the agent on the runtime you already use.
  • 改进:追踪、评估、数据集、标注和 Engine 均适用于任何将追踪数据发送到 LangSmith 的智能体。
    Improve: Tracing, evals, datasets, annotation, and Engine work on any agent that sends traces to LangSmith.
  • 治理:LangSmith 代理注册表和 LLM Gateway 可提供组织级可见性,并对每个已注册的代理实施严格管控。
    Govern: LangSmith agent registry and LLM Gateway provide org-level visibility and strict controls over every registered agent.

打开某个 Agent 记录后,只需点击一下,即可查看其追踪记录、评估结果、Agent Server 和 Engine 问题,无需在多个界面之间来回切换查找。每个 Agent 的本地、开发、预发布和生产环境都归属同一个 Agent ID,因此更改后比较性能很简单。When you open an agent record, its traces, evals, Agent Server, and Engine issues are accessible with one click, so you don’t need to navigate multiple surfaces to find them. Each agent’s local, dev, staging, and production environments sit under the same agent ID, so comparing performance after making changes is simple.

LangSmith 具有可组合性,因此你可以按需选择所需功能。如果你的智能体已经运行在其他平台上,可以将其连接到 LangSmith,以便在不改变其他工作流程的情况下对其进行改进和治理。LangSmith is composable, so you can choose the parts you need. If you already run your agent on another platform, you can connect it to LangSmith to improve and govern it without changing any other workflows.

如果你在 LangSmith 上构建和运行,就能获得一个统一管理整个生命周期的平台。LangSmith 的各项产品相辅相成,帮助你更快地发现、修复、发布并验证智能体中的问题。例如,在将拟议的修复合并到生产环境之前,LangSmith Engine 可以针对 Agent Server 预览版对其进行验证。If you build and run on LangSmith, you get more than a single place to manage the lifecycle. LangSmith products build on each other, so you can find, fix, ship, and verify issues in your agents faster. For example, LangSmith Engine can validate a proposed fix against an Agent Server preview before you merge it to production.

代理的新数据模型The new data model for agents

以前,发送到 LangSmith 的追踪记录采用扁平的项目层级结构,不与任何特定智能体关联。同一智能体在不同环境中的追踪记录彼此之间也没有关联。Before, traces sent to LangSmith used a flat project hierarchy not associated with any particular agent. The traces from a single agent in different environments had no association with each other.

现在有一条代理记录,环境和轨迹都归集在其中。开发生命周期的每个阶段都与这条代理记录相关联。Now there is one agent record, with environments and traces grouped under it. Every stage of the development lifecycle connects to the agent record.

每条代理记录都包含三个属性:Every agent record includes three properties:

  • 负责人:对该代理负责的具名人员
    Owner: a named person responsible for the agent
  • ID:全局唯一且不可变的标识符
    ID: a globally unique, immutable identifier
  • 类型:代理的类别,它决定其仪表板中展示的信息、数据连接以及评估标准。
    Type: what kind of agent it is, which determines the information surfaced in its dashboard, its data connections, and evaluation criteria

针对不同类型智能体的评估与治理Evals and governance for different agent types

不同的智能体承担不同的工作,因此需要不同类型的评估来管理和改进它们。例如,编码智能体的评判标准是它编写的代码是否被合并,而客服智能体则需要具备低延迟。LangSmith 架构通过智能体类型纳入这些差异,因此每条智能体记录都能提供围绕其目标设计的实用资源。Different agents do different work, so you need different types of evaluation to govern and improve them. For example, a coding agent is judged by whether the code it writes gets merged, while a customer support agent requires low latency. Agent types build these distinctions into the LangSmith architecture, so each agent record provides useful resources designed around the agent’s goals.

Agent 类型提供三项内容:Agent types provide three things:

围绕智能体工作构建的数据视图:每种智能体类型都有量身定制的仪表板,展示关键统计数据和评估标准。对于通用智能体,内容包括智能体简介、近期活动、在线监控、常用模型和工具,以及 Engine 显示的智能体故障。对于编程智能体,内容则包括已合并的 PR、令牌成本,以及智能体完成的工作类型。A data view built around the agent’s work: Each agent type has a tailored dashboard with key statistics and evaluation criteria. For a general purpose agent, this includes a description of the agent, its recent activity, online monitoring, common models and tools it uses, and agent failures surfaced by Engine. For a coding agent, it's merged PRs, token cost, and what type of work the agent completes.

无需手动设置,数据保持一致:这些仪表板经过有意设计,内置明确的预设。为 agent 指定类型后,其仪表板便可直接使用,无需先创建自定义视图。同一类型的所有 agent 都采用相同的方式进行衡量,因此,如果有三个人在运行编码 agent,三者的数据指标便可以相互比较。Consistent data without manual setup: The dashboards are intentionally opinionated. When you assign an agent a type, its dashboard is ready to go with no custom views to build first. Every agent of a given type is measured the same way, so when you have three people running coding agents, the measures are comparable across all three.

数据连接:编码代理类型允许你连接 GitHub 仓库,以跟踪代理使用情况带来的后续成果。随着我们构建更多代理类型,我们将继续开发集成,让你能够查看并处理与代理相关的数据。Data connections: The coding agent type allows you to connect your GitHub repo to track downstream outcomes of agent usage. As we build more agent types, we'll continue to build integrations that enable you to see and act on relevant data for your agents.

我们最初从通用型和编程型智能体入手,现在正扩展到更多类型,以支持具有独特评估需求的智能体。例如,语音智能体不仅需要解决客户问题,还需要以低延迟和出色的音频质量与客户互动。借助智能体类型,我们可以默认呈现这些特定数据,让开发者更轻松地发现问题并加以修复。We've started with general purpose and coding agents, and we're expanding into additional types for agents that have unique evaluation. For example, voice agents don't just need to solve customer problems, but to interact with customers with low latency and good audio quality. With agent types, we can surface these specific data by default, and make it easier for developers to find failures and fix them.

无论智能体在哪里运行,都要对其进行治理。Govern every agent, wherever it runs

智能体泛滥已成为一个治理问题,其来源有三个方面:工程团队会构建定制智能体;业务部门会采用供应商平台提供的智能体,例如用于 IT 的 ServiceNow 和用于企业搜索的 Glean;员工也会自行使用编程和效率智能体。Agent sprawl has become a governance problem, and it comes from three directions. Engineering teams build custom agents. Business units adopt agents from vendor platforms, like ServiceNow for IT and Glean for enterprise search. And employees pick up coding and productivity agents on their own.

平台团队和 AI 负责人需要对所有这些平台负责,但要求每个团队都统一使用一个平台并不现实。Platform teams and AI leaders are accountable for all of them, but asking every team to standardize on one platform isn’t realistic.

有了 LangSmith,他们就不必这样做。它适用于运行在任何支持 OpenTelemetry Protocol (OTLP) 的平台上的智能体,包括实验室和超大规模云服务商。连接智能体后,它就会与工程师构建的智能体一同注册,并接受相同方式的测量。With LangSmith, they don’t have to. It works for agents running on any platform that supports OpenTelemetry Protocol (OTLP), including labs and hyper scalers. Connect the agent and it’s registered along with the agents your engineers built, and it’s measured the same way.

每个已注册的代理都有所有者、ID 和类型。对于管理员而言,这提供了一种一致的方式来监控和管理整个代理群。各个环境中的成本和质量指标都会汇总到每个代理上。如果 Glean 代理的成本突然飙升,管理员可以联系到明确的负责人,并查看指明问题所在的追踪详情。Every registered agent has an owner, ID, and type. For admins, this provides a consistent way to monitor and manage the entire agent fleet. Cost and quality metrics roll up to each agent across every environment. If there’s a cost spike from a Glean agent, there is a named owner to contact, along with trace details that indicate what went wrong.

LangSmith 接下来的发展方向Where LangSmith is going next

Agent 记录是 LangSmith 的全新基础,我们很高兴能继续以此为基础进行构建。通过将每条追踪记录、环境和部署都关联到 Agent,我们可以让更多工作流对开发者而言更加简单,并内置治理机制。The agent record is a new foundation for LangSmith, and we’re excited to keep building on it. With every trace, environment, and deployment pinned to the agent, we can make more workflows simple for developers, with governance built in.

下面是我们正在构建的愿景:Engine 会对你的智能体进行红队测试,找出故障,并在你发布修复后监控是否出现回归。你的团队会在一款根据自身审核流程定制的标注应用中审核生产环境轨迹,审核后的样例会自动汇入评测数据集。表现最佳的运行轨迹会成为微调模型的数据,从而降低成本并提升智能体性能。所有这些都关联到同一份智能体档案,关键绩效指标(KPI)也会受到实时监控。Here’s an idea of what we’re building toward: Engine red teams your agent, finds failures, and monitors for regressions after you ship a fix. Your team reviews production traces in a custom annotation app built around its own review process, and the reviewed examples automatically flow into eval datasets. Trajectories from your best runs become data for fine-tuning a model that lowers cost and improves agent performance. All of it is connected to the same agent record, with KPIs monitored in real time.

这些功能如今都已在 LangSmith 中实现。现在,我们正将它们连接起来,让开发体验变得更加轻松。Each of these pieces exists in LangSmith today. Now we’re connecting them to make the develop experience even easier.

此外,路线图中还包括:Also on the roadmap:

更多智能体类型:通用型和编程型智能体目前已可用,语音智能体也即将推出。我们将持续扩展,帮助团队标准化对更多类型智能体的评估和治理方式,并为每种智能体提供相关的数据连接和分析能力。More agent types: General purpose and coding agent types are available today, and voice is on the horizon. We’ll keep expanding to enable teams to standardize how they evaluate and govern more kinds of agents, each with the relevant data connections and analytics.

组织级仪表板:目前,工作区级别提供集中式仪表板。我们正在开发组织级仪表板,让领导者能够在一个视图中查看整个公司的汇总绩效指标和趋势。Org level dashboards: Centralized dashboards are available at a workspace-level today. We're working on org level dashboards, so leaders can see aggregated performance metrics and trends across the entire company in one view.

身份:每个代理都已经拥有唯一且不可变的 ID。接下来,你将能够在身份提供商中注册代理,以便安全团队像管理和审计组织中的其他身份一样管理和审计它们。Identity: Every agent already has a unique, immutable ID. Next, you'll be able to register agents in your identity provider so that security teams can manage and audit them like any other identity in your organization.

如何开始使用新版 LangSmithHow to get started with the new LangSmith

新版 LangSmith 已在云端、BYOC 和自托管环境中全面推出。您现在即可登录或注册体验。The new LangSmith is available globally in cloud, BYOC, and self-hosted environments. You can try it by logging in or signing up today.

最快的入门方式是使用 LangSmith Studio 构建你的第一个智能体,或连接你已在运行的智能体。The fastest way to get started is by building your first agent with LangSmith Studio or connecting an agent you already run.

值得记下

  1. 有了这项改动,智能体如今成为 LangSmith 的核心对象,将开发者彼此割裂的工作流连接起来,并让平台团队能够在整个业务范围内管理智能体。
  2. 打开一条智能体记录后,只需单击一次,就能查看它的追踪记录、评估结果、Agent Server 和 Engine 问题,无需在多个界面之间来回切换。
  3. 不同的智能体承担不同的工作,因此需要采用不同的评估方式来治理和改进它们。例如,评判编程智能体要看它编写的代码能否合并,而客服智能体则需要具备低延迟。
  4. 使用 LangSmith,就不必如此。只要平台支持 OpenTelemetry 协议(OTLP),LangSmith 就能支持在其上运行的智能体,包括实验室和超大规模云服务商的平台。

← 回到本期 · 第 15 条