arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.13404cs.SEcs.AI
收藏

为LLM代理设计的基于模式的工具API:对工具误用、恢复和预算性能的受控研究

Schema First Tool APIs for LLM Agents: A Controlled Study of Tool Misuse, Recovery, and Budgeted Performance

Independent Researcher(独立研究者)

Akshey Sigdel, Rista Baral

AI总结:

本文通过受控实验探讨基于模式的工具合同和结构化验证诊断对LLM代理在严格交互预算下的可靠性影响,发现模式条件减少接口误用但未改善语义误用。

摘要:

工具使用已成为现代LLM代理的核心,但接口设计 rarely 被作为实验变量。本文研究基于模式的工具合同和结构化验证诊断是否能提高在严格交互预算下的可靠性。我们评估了三种条件:自由文档、JSON Schema规范和JSON Schema加结构化诊断。我们实现了一个确定性的软件工程沙盒,包含日志、指标、配置和仓库任务,并评估了一个完全交叉的试点,包含一个本地开放模型、三个种子、三个接口条件和四个预算。我们报告了终端任务成功率、接口误用、执行失败、语义误用、恢复行为和开销。在该试点中,所有条件的成功率均为零,而模式条件减少了接口误用但未减少语义误用。证据支持精确解释:接口形式化提高了合同遵循性,但语义行动质量和对超时敏感的任务仍然是在受限本地推理下的主要瓶颈。

英文摘要:

Tool use has become central to modern LLM agents, yet interface design is rarely isolated as an experimental variable. This paper studies whether schema based tool contracts and structured validation diagnostics improve reliability under strict interaction budgets. We evaluate three conditions that preserve identical tool semantics and information content: free form documentation, JSON Schema specifications, and JSON Schema with structured diagnostics. We implement a deterministic software engineering sandbox with logs, metrics, configurations, and repository tasks, and evaluate a fully crossed pilot with one open local model, three seeds, three interface conditions, and four budgets. We report end task success, interface misuse, execution failures, semantic misuse, recovery behavior, and overhead. In this pilot, success remains zero across conditions, while schema conditions reduce interface misuse but not semantic misuse. The evidence supports a precise interpretation that interface formalization improves contract adherence, but semantic action quality and timeout sensitive tasks remain dominant bottlenecks under constrained local inference.

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

↑