arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.13346cs.CL
收藏

AgentSPEX:一种代理规范与执行语言

AgentSPEX: An Agent SPecification and EXecution Language

University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);University of Wisconsin–Madison(威斯康星大学麦迪逊分校);Baylor College of Medicine(贝勒医学院)

Pengcheng Wang, Jerry Huang, Jiarui Yao, Rui Pan, Peizhi Niu, Yaowenqi Liu, Ruida Wang, Renhao Lu, Yuwei Guo, Tong Zhang

AI总结:

本文提出AgentSPEX,一种用于定义LLM代理工作流的显式控制流和模块化结构的语言,支持类型步骤、分支、循环、并行执行和显式状态管理,并提供可定制的代理框架。

摘要:

语言模型代理系统通常依赖于反应式提示,其中单个指令引导模型通过开放-ended的推理和工具使用步骤,留下控制流和中间状态隐含,使代理行为难以控制。 orchestration框架如LangGraph、DSPy和CrewAI通过显式工作流定义施加更多结构,但紧密耦合工作流逻辑与Python,使代理难以维护和修改。在本文中,我们介绍了AgentSPEX,一种用于指定LLM代理工作流的代理规范与执行语言,具有显式控制流和模块化结构,以及可定制的代理框架。AgentSPEX支持类型步骤、分支和循环、并行执行、可重用的子模块和显式状态管理,并且这些工作流在代理框架中执行,提供工具访问、沙盒虚拟环境以及检查点、验证和日志记录的支持。此外,我们提供了一个具有同步图和工作流视图的可视化编辑器,用于编写和检查。我们包括可用于深度研究和科学研究的即用型代理,并在7个基准上评估AgentSPEX。最后,我们通过用户研究证明,AgentSPEX比一个流行的现有代理框架提供了更可解释和可访问的工作流编写范式。

英文摘要:

Language-model agent systems commonly rely on reactive prompting, in which a single instruction guides the model through an open-ended sequence of reasoning and tool-use steps, leaving control flow and intermediate state implicit and making agent behavior potentially difficult to control. Orchestration frameworks such as LangGraph, DSPy, and CrewAI impose greater structure through explicit workflow definitions, but tightly couple workflow logic with Python, making agents difficult to maintain and modify. In this paper, we introduce AgentSPEX, an Agent SPecification and EXecution Language for specifying LLM-agent workflows with explicit control flow and modular structure, along with a customizable agent harness. AgentSPEX supports typed steps, branching and loops, parallel execution, reusable submodules, and explicit state management, and these workflows execute within an agent harness that provides tool access, a sandboxed virtual environment, and support for checkpointing, verification, and logging. Furthermore, we provide a visual editor with synchronized graph and workflow views for authoring and inspection. We include ready-to-use agents for deep research and scientific research, and we evaluate AgentSPEX on 7 benchmarks. Finally, we show through a user study that AgentSPEX provides a more interpretable and accessible workflow-authoring paradigm than a popular existing agent framework.

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

↑