菜单

关于 🐙 GitHub
arXiv 提交日期: 2026-06-03
📄 Abstract - Self-Reflective APIs: Structure Beats Verbosity for AI Agent Recovery

When an AI agent calls an API and hits a validation error, it needs more than what went wrong -- it needs what to do next. A self-reflective API returns, on validation failure, a machine-readable recovery\this http URL[] payload sufficient for the agent to repair the request and retry without external reasoning. On a leak-audited pilot ($N{=}30$ per cell, 3 LLMs, 10 adversarial tasks), structured suggestions lift task-completion rate by $+36.7$--$40.0$pp over plain-English diagnoses on Anthropic models (Fisher's exact $p \le 0.0022$), at $1.8$--$2.2\times$ better per-success token efficiency. The lift is not significant on gpt-4o-mini ($p{=}0.435$); a second-domain replication on a billing API confirms the pattern. The comparison only holds after auditing two undocumented classes of answer leakage in LLM benchmarks. We shipaudit\_prompt\this http URL as reusable CI infrastructure. Code and data: this https URL.

顶级标签: llm agents systems
详细标签: api error recovery self-reflection structured suggestions benchmark leakage audit token efficiency 或 搜索:

自我反思型API:结构化信息比冗长描述更能帮助AI智能体从错误中恢复 / Self-Reflective APIs: Structure Beats Verbosity for AI Agent Recovery


1️⃣ 一句话总结

该论文提出了一种“自我反思型”API设计,当AI智能体调用失败时,不返回冗长的错误描述,而是直接返回结构化的、机器可读的修复建议,实验表明这种方法能显著提升智能体任务完成率和效率,尤其在部分模型中表现突出。

源自 arXiv: 2606.05037