通过消息序列图实现LLM代理的可证明协调
Provable Coordination for LLM Agents via Message Sequence Charts
AI总结:
本文提出基于消息序列图的领域特定语言,用于规范LLM代理协调,解决死锁和消息类型不匹配等问题,通过语法引导投影生成无死锁的局部代理程序,并展示如何在LLM非确定性基础上建立协调属性。
摘要:
基于大型语言模型(LLMs)的多智能体系统难以进行推理。死锁或消息类型不匹配等协调错误往往难以通过测试检测。我们引入一种基于消息序列图(MSCs)的领域特定语言,用于规范代理协调。该语言将消息传递结构与LLM操作分离,其输出仍不可预测。我们定义了该语言的语法和语义,并提出一种语法引导的投影,从全局协调规范生成无死锁的局部代理程序。我们通过诊断共识协议演示了该方法,并展示了如何在LLM非确定性基础上建立协调属性。我们还描述了一种运行时规划扩展,其中LLM动态生成协调工作流程,该流程具有相同结构保证。我们的框架开源实现可用ZipperGen提供。
英文摘要:
Multi-agent systems built on large language models (LLMs) are difficult to reason about. Coordination errors such as deadlocks or type-mismatched messages are often hard to detect through testing. We introduce a domain-specific language for specifying agent coordination based on message sequence charts (MSCs). The language separates message-passing structure from LLM calls, tool calls, and human control points, whose outcomes remain unpredictable. We define the syntax and semantics of the language and present a syntax-directed projection that generates deadlock-free local agent programs from global coordination specifications. We illustrate the approach with a diagnosis consensus protocol and show how coordination properties can be established independently of LLM nondeterminism. We also describe a runtime planning extension in which an LLM dynamically generates a coordination workflow for which the same structural guarantees apply. An open-source Python implementation of our framework is available as ZipperGen.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。