arXiv:2606.06923cs.AIcs.SE2026-06被引 3

用自然语言技能文件让AI agent自主决策,提升客服流程准确性。

Declarative Skills for AI Agents in Knowledge-Grounded Tool-Use Workflows

  • 用自然语言描述技能,让AI自主决定执行流程。
  • 高质量检索下,声明式代理准确率更高,错误更少。
  • 适合需要灵活应变的复杂任务场景,如客户服务。

我们研究在非结构化知识库上真实客户服务中心工作流中工具使用型AI代理的编排机制。认为声明式代理——即在系统提示中附加自然语言技能文件的AI代理——是一种有效的编排范式。具体比较了三种代理:(i) 声明式代理在推理时读取三个领域特定技能文件并自主决定控制流;(ii) 基于程序化状态机的指令式代理,具有明确阶段划分;(iii) 无框架基线代理,参照τ-Knowledge基准模型。指令式代理受递归语言模型和基于图的编排框架启发。我们将三类代理形式化为去中心化部分可观测马尔可夫决策过程中的策略类别,并分析其信息论与结构特性;随后在五种语言模型和两种检索方案下实证验证预测差异。结果表明,检索质量是AI代理的主导瓶颈:当证据不完整或有偏差时,所有代理性能显著下降,技能文件无法恢复损失表现。但在高质量检索下,声明式技能能持续提升程序性任务准确率并减少编排错误,而指令式状态机的脆弱性并未可靠提升任务成功率或合规性。

原文摘要 · Abstract (English)

We study orchestration mechanisms for tool-using AI agents in realistic customer-service workflows over an unstructured knowledge base. We argue that declarative agents -- AI agents equipped with natural-language skill files appended to the system prompt -- are an effective orchestration paradigm. Concretely, we compare (i) a DeclarativeAgent that reads three domain-specific skill files at inference time and decides its own control flow, (ii) an ImperativeAgent based on a programmatic state machine with explicit phases, and (iii) an unscaffolded baseline agent modeled after the $τ$-Knowledge benchmark agent. Our ImperativeAgent is motivated by externalised-control inference as in Recursive Language Models and graph-based orchestration frameworks. We formalise the three agents as policy classes within a decentralised partially-observable Markov decision process and analyse their information-theoretic and structural properties; we then test the predicted differences empirically on five language models and two retrieval regimes. Our results show that retrieval quality is a dominant bottleneck for AI agents: when evidence is incomplete or skewed, all agents degrade substantially, and skill files cannot recover lost performance. Under high-quality retrieval, however, declarative skills consistently improve accuracy on procedural tasks and reduce orchestration errors, while the imperative state machine's brittleness does not reliably improve task success or compliance.

AI代理技能编排知识增强

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。