arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2512.19769cs.SEcs.AIcs.PL
收藏

构建和协调基于大语言模型的智能体工作流的声明式语言

A Declarative Language for Building And Orchestrating LLM-Powered Agent Workflows

PayPal

Ivan Daunis

AI总结:

本文提出一种声明式语言,用于构建和协调基于大语言模型的智能体工作流,通过统一DSL减少开发时间和部署速度,提升非工程师的使用效率。

摘要:

构建可部署的大语言模型智能体需要复杂地协调工具、数据源和控制流逻辑,但现有系统紧密耦合智能体逻辑到特定编程语言和部署模型。我们提出一个声明式系统,将智能体工作流规范与实现分离,使相同的工作流定义能够在多种后端语言(Java、Python、Go)和部署环境(云原生、本地)上执行。我们的核心见解是,大多数智能体工作流由常见模式组成——数据序列化、过滤、RAG检索、API协调——这些可以通过统一的领域特定语言(DSL)表达,而不是用命令式代码。这种方法将智能体开发从应用程序编程转变为配置,添加新工具或微调智能体行为只需更改工作流规范,而无需代码部署。我们的系统原生支持智能体策略的A/B测试,允许多个工作流变体在同一后端基础设施上运行,自动收集和比较指标。我们对PayPal的现实世界电子商务工作流进行了评估,处理数百万日交互。我们的结果表明,与命令式实现相比,开发时间减少了60%,部署速度提高了3倍。该语言的声明式方法使非工程师能够安全地修改智能体行为,同时保持低于100毫秒的协调开销。我们展示了涉及产品搜索、个性化和购物车管理的复杂工作流可以用不到50行DSL表达,而命令式代码则需要500多行。

英文摘要:

Building deployment-ready LLM agents requires complex orchestration of tools, data sources, and control flow logic, yet existing systems tightly couple agent logic to specific programming languages and deployment models. We present a declarative system that separates agent workflow specification from implementation, enabling the same pipeline definition to execute across multiple backend languages (Java, Python, Go) and deployment environments (cloud-native, on-premises). Our key insight is that most agent workflows consist of common patterns -- data serialization, filtering, RAG retrieval, API orchestration -- that can be expressed through a unified DSL rather than imperative code. This approach transforms agent development from application programming to configuration, where adding new tools or fine-tuning agent behaviors requires only pipeline specification changes, not code deployment. Our system natively supports A/B testing of agent strategies, allowing multiple pipeline variants to run on the same backend infrastructure with automatic metric collection and comparison. We evaluate our approach on real-world e-commerce workflows at PayPal, processing millions of daily interactions. Our results demonstrate 60% reduction in development time, and 3x improvement in deployment velocity compared to imperative implementations. The language's declarative approach enables non-engineers to modify agent behaviors safely, while maintaining sub-100ms orchestration overhead. We show that complex workflows involving product search, personalization, and cart management can be expressed in under 50 lines of DSL compared to 500+ lines of imperative code.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑