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

SHIELDA:LLM驱动的智能体工作流中的结构化异常处理

SHIELDA: Structured Handling of Exceptions in LLM-Driven Agentic Workflows

Jingwen Zhou, Jieshan Chen, Qinghua Lu, Dehai Zhao, Liming Zhu

AI总结:

本文提出SHIELDA框架,通过36种异常分类和结构化执行器实现LLM智能体工作流的跨阶段异常恢复,解决现有方案根因追溯与升级路径缺失问题。

摘要:

大型语言模型(LLM)智能体系统是由LLM驱动的软件系统,能自主推理、规划和执行多步工作流以实现人类目标,而非仅执行预定义步骤。在执行过程中,这些工作流常遇异常。现有异常处理方案往往浅层处理,未能将执行阶段异常追溯至推理阶段的根因。此外,其恢复逻辑脆弱,在初始尝试失败时缺乏结构化升级路径。为应对这些挑战,我们首先提出涵盖12种智能体制品的36种异常类型的综合分类法。在此基础上,我们提出SHIELDA,一个用于LLM智能体工作流的模块化运行时异常处理框架。SHIELDA利用异常分类器从处理模式注册表中选择预定义异常处理模式。这些模式随后通过结构化处理执行器执行,包含本地处理、流控和状态恢复,通过将异常与其根因关联并促进可组合策略,实现阶段感知的恢复。我们通过对AutoPR智能体的案例研究验证了SHIELDA的有效性,展示了对推理诱发异常的有效跨阶段恢复。

英文摘要:

Large Language Model (LLM) agentic systems are software systems powered by LLMs that autonomously reason, plan, and execute multi-step workflows to achieve human goals, rather than merely executing predefined steps. During execution, these workflows frequently encounter exceptions. Existing exception handling solutions often treat exceptions superficially, failing to trace execution-phase exceptions to their reasoning-phase root causes. Furthermore, their recovery logic is brittle, lacking structured escalation pathways when initial attempts fail. To tackle these challenges, we first present a comprehensive taxonomy of 36 exception types across 12 agent artifacts. Building on this, we propose SHIELDA (Structured Handling of Exceptions in LLM-Driven Agentic Workflows), a modular runtime exception handling framework for LLM agentic workflows. SHIELDA uses an exception classifier to select a predefined exception handling pattern from a handling pattern registry. These patterns are then executed via a structured handling executor, comprising local handling, flow control, and state recovery, to enable phase-aware recovery by linking exceptions to their root causes and facilitating composable strategies. We validate SHIELDA's effectiveness through a case study on the AutoPR agent, demonstrating effective, cross-phase recovery from a reasoning-induced exception.

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

↑