读见

Workday 如何借助 LangGraph 和 LangSmith 构建企业级 AI 智能体平台

原题How Workday Built an Enterprise-Scale AI Agent Platform with LangGraph and LangSmith

约 4 分钟约 770 字原文英文已翻译

读前速览

3 个要点

Workday 使用 LangGraph 进行编排、LangSmith 进行追踪与评估,构建了企业级 AI 智能体平台;小团队在满足严格安全与治理要求的同时,实现了快速原型开发和生产部署。

  1. LangGraph 的图式编排方式支持灵活设计智能体,同时抽象底层复杂性

    Workday 选择 LangGraph,而非基于对话的平台,因为其图模型让工程师能够构建从简单的 ReAct 循环到复杂的确定性工作流等各种方案,而平台不会预先限定智能体架构;与此同时,LangChain 会自动处理后端对 A2A 和 MCP 协议的兼容。

  2. LangSmith 为企业部署提供关键的追踪、可观测性和评估能力

    Workday 使用 LangSmith 构建智能体追踪和评估基础设施。其内置的可观测性在满足审计与合规要求方面至关重要,同时也支持快速原型开发和生产部署。

  3. 该平台将原型开发时间从 4-5 个月缩短至不到 1 天,并推动团队从 4 人扩大至 30 人

    Workday 将身份验证、安全和基础设施相关工作抽象到平台中,大幅缩短了原型开发时间并推动团队扩张,展现了该平台在治理要求严格的企业环境中的有效性。

完整摘要

Workday 的智能体平台团队利用 LangGraph 编排智能体,并借助 LangSmith 实现追踪、可观测性和评估,从而构建了一个内部开发者平台,用于创建、部署和运行生产环境中的 AI 智能体。面对严格的安全和数据治理要求,这支由 4 人组成的团队创建了治理层(智能体系统记录),用于控制 API 访问;开发了 Python SDK(「Workday LangChain」),以抽象底层基础设施;并与 LLM 网关、RAG 检索等内部服务集成。LangGraph 的图模型提供了灵活的设计方式,同时由标准化基础设施处理后端复杂性。这将原型开发时间从 4-5 个月缩短至不到 1 天,让团队能够快速迭代并做好生产部署准备。如今,该平台已成为统一 Workday 内部 AI 服务的连接层;平台的成功也推动团队规模从 4 人扩大到 30 人。

目录 · 4 节

查看原文

Workday 是值得信赖的智能体平台,服务于人力资源、财务和 IT 领域,客户包括超过半数的《财富》500 强企业。团队着手构建内部开发者平台,以便在 Workday 的基础设施上构建、部署并运行生产环境中的 AI 智能体。团队采用 LangGraph 编排智能体,并使用 LangSmith 进行追踪、可观测性分析和评估。Workday is the trusted agentic platform for HR, finance, and IT, serving more than half the Fortune 500. The team set out to create the internal developer platform to build, deploy, and run AI agents in production, on Workday's infrastructure. The team leveraged LangGraph for agent orchestration and LangSmith for tracing, observability, and evals.

由 4 人团队快速交付智能体平台Shipping an agent platform fast, with a team of 4

2025 年,Workday 领导团队看到了构建智能体解决方案的市场机遇,并为智能体在 2026 年底前投入生产设定了一个雄心勃勃的目标。产品团队需要一个既能支持快速原型开发、又能支持生产部署的平台——鉴于 Workday 在企业软件领域受到最严格的安全和数据治理要求之一的约束,这是一项格外艰巨的任务。任何内部服务要投入生产,都必须满足严格的审计、合规和数据保留政策。In 2025, Workday’s leadership team saw the market opportunity for building agentic solutions and set an ambitious goal for agents in production by the end of 2026. Product teams needed a platform that could support both rapid prototyping and production deployments—a uniquely challenging mandate given Workday operates under some of the strictest security and data governance requirements in enterprise software. Getting any internal service into production means satisfying demanding audit, compliance, and data retention policies.

对于一个四人团队来说,这项工作的范围极其庞大,涵盖了一个持久且可扩展的代理服务器、与 Workday 审计策略绑定的数据访问控制、一个协作式评估平台,以及一个将所有这些抽象封装起来的 SDK。The surface area was enormous for a team of four, encompassing a durable, scalable agent server; data access controls tied to Workday's audit policies; a collaborative eval platform; and an SDK that abstracted all of it. 

为构建者而造:为 Workday 的智能体团队抽象基础设施Built for builders: abstracting infrastructure for Workday's agent teams

Workday 的 Agent Platform 团队服务于两类用户:1. 构建智能体的 Workday 内部工程团队;2. 这些智能体的终端客户。它让团队能够专注于功能需求,同时负责处理身份验证、安全、合规和基础设施。Workday’s Agent Platform team serves two user bases. 1.) the internal Workday engineering teams building agents, and 2.) the end customers of those agents. It lets teams focus on functional requirements, while handling authentication, security, compliance, and infrastructure.

首个正式发布的重要产品是 Workday 的 Agent System of Record,这是一个治理层,用于控制智能体获准访问哪些 API。Agent Platform 团队构建了 Agent System of Record 所依托的后端服务器和评估基础设施。The first major product shipped was Workday's Agent System of Record, a governance layer that controls which APIs the agents are allowed to access. The Agent Platform team built the backend server and eval infrastructure that the system of record runs on top of.

团队还构建了 Alex Gatto(高级机器学习工程师)所说的“Workday LangChain”:一个 Python SDK,用于封装 LangChain 的基础组件,并通过 Workday 的内部服务调用这些组件,包括 LLM 网关、RAG 检索服务以及其他内部工具。Alex 解释道:“每当 LangChain 推出某种 AI 概念时,我们都会尝试在 Workday 为同一概念构建一个 Python SDK。”The team also built what Alex Gatto, Senior Machine Learning Engineer, describes as "Workday LangChain": a Python SDK that wraps LangChain primitives and routes them through Workday's internal services, including an LLM gateway, a RAG retrieval service, and other internal tooling. "Anytime there was some AI concept that LangChain had put out, we tried to build a Python SDK for that same concept, but at Workday," explained Alex.

LangGraph 和 LangSmith:兼顾设计灵活性,无需承担后端开销LangGraph and LangSmith for design flexibility without backend overhead

Workday 选择 LangGraph 来编排智能体,使内部开发人员在设计层拥有最大的灵活性,同时由底层提供标准化基础设施。Workday chose LangGraph for agent orchestration to give internal developers maximum flexibility at the design layer, while providing standardized infrastructure underneath.

相比于将智能体建模为对话序列或角色设定的平台,LangGraph 的图模型赋予工程师构建各种系统的能力,从简单的 ReAct 循环到复杂的确定性工作流,而平台不会预先限定智能体应当是什么样子。Compared to platforms that modeled agents as sequences of conversations or personas, LangGraph’s graph-based model gave engineers the power to build everything from simple ReAct loops to complex deterministic workflows, without the platform prejudging what an agent should look like.

“我最喜欢 LangChain Agent Server 和 LangSmith 的一点,就是它们提供了如此多的开箱即用功能。这体现了他们在智能体开发方面考虑得有多周全,”Alex 说道。比如,当高层领导询问团队 Workday 针对 A2A 和 MCP 协议的战略时,团队马上就能回答:这些协议已经投入生产使用。“One of my favorite things about LangChain’s Agent Server and LangSmith is just how much you get for free. Just because of how much they've thought about agent development,” said Alex. For example, when senior leadership asked the team about Workday's strategy for A2A and MCP protocols, the team could immediately answer that it was already in production. 

由于 LangChain 的 Agent Server 实现内置了对 A2A 和 MCP 的支持,Agent Platform 团队运行的每个 Agent Server 都已符合这两种协议。开发者对图所做的任何更新都会立即反映到服务器上。Alex 汇报道:“后端不是问题所在。LangChain 已经替我们搞定了。”Because LangChain's agent server implementations are built with A2A and MCP support, every agent server the Agent Platform team ran was already compliant with both protocols. Any developer update to their graph was immediately reflected in the server. "The backend isn't the problem," Alex reported. "LangChain took care of it for us."

原型开发时间从 5 个月缩短至不到 1 天Time-to-prototype reduced from 5 months to less than 1 day

以前,构建一个智能体原型需要 4 到 5 个月,而且无法保证它最终能否投入生产环境。借助新平台,团队不到一天就能让原型在预发布环境中运行,并且身份验证和安全要求都已内置。智能体构建团队唯一需要考虑的问题是:这个智能体到底要做什么,图结构又是什么样的?Previously, building a prototype agent took 4 to 5 months, with no guarantee it could ever reach production. With the new platform, a team can have a prototype running in a staging environment in under a day, with authentication and security requirements baked in. The only question left for the agent-building team is: what does this agent actually do, and what does the graph look like?

团队最初只有4人,如今已发展到约30人,并计划继续投入。“由于我们与 LangChain 合作取得了成功,也因为我们实现了这些成果,团队规模已经扩大到原来的三倍多,”Alex 说。The team, which started at 4 people, has now grown to roughly 30 members, with continued investment planned. “Because of the success of our partnership with LangChain and what we were able to accomplish, we’ve more than tripled the size of our team,” said Alex. 

对 Alex 而言,这个平台的意义远不止是一个智能体部署层。多年来,Workday 的工程师构建了数十种内部服务(LLM 网关、RAG 检索器、推荐引擎、提示词服务),其中大多数彼此孤立,团队之外的人对此一无所知。Agent Platform 凭借其 Python SDK 和基于 LangChain 的基础组件,成为连接这一切的纽带;它是首个能够充分利用 Workday 内部基础设施全部资源的统一智能体构建接口。For Alex, the platform represents something bigger than an agent deployment layer. Workday engineers have built dozens of internal services over the years (LLM gateways, RAG retrievers, recommendation engines, prompt services) most of which existed in isolation, unknown outside their immediate teams. Agent Platform, with its Python SDKs and LangChain-backed primitives, became the connectivity layer that surfaced all of it; it’s the first unified interface for building agents that actually taps into the full depth of Workday's internal infrastructure.

与 LangChain 的合作对我们的智能体开发至关重要,”Alex 表示。“我们与他们合作时,建立的是非常深入的合作伙伴关系。没有 LangSmith 的速度和成熟度,我们根本不可能为客户创造价值。"Our partnership with LangChain is critical to our agent development,” said Alex. “You're gaining a really deep partnership when we work with them. And there's just no way that we could have delivered value to our customers without LangSmith’s speed and maturity.”

‍‍

正在构建生产级智能体基础设施?进一步了解 LangGraph,以及用于部署和可观测性的 LangSmith。Building production agent infrastructure? Learn more about LangGraph, and LangSmith for Deployment and Observability.

值得记下

  1. 我最喜欢 LangChain 的 Agent Server 和 LangSmith 的一点,就是它们有很多功能开箱即用。这正是因为他们对智能体开发进行了深入思考。
  2. 后端不是问题。LangChain 已经替我们处理好了。
  3. 得益于我们与 LangChain 合作的成功,以及我们取得的成果,团队规模已经扩大到原来的 3 倍以上。