为企业AI代理设计语义化工具接口,提升自主执行效率
Agent-First Tool API: A Semantic Interface Paradigm for Enterprise AI Agent Systems
- 用六动词语义协议拆解工具交互流程,实现精准控制
- 实测任务成功率提升至88%,人工干预减少72.7%
- 适合构建高自治企业级AI代理系统的技术方案
随着AI代理从研究原型转向企业生产系统,其使用的工具接口仍沿用面向人类的CRUD范式。本文指出传统API与自主代理需求之间的五大架构错配:精确标识依赖、渲染导向响应、单次交互假设、用户等效授权、错误语义不透明。为此提出代理优先工具API范式,包含三项核心机制:(1) 六动词语义协议,将工具交互分解为搜索、定位、预览、执行、验证、恢复六个阶段;(2) 标准化工具契约(NTC),提供置信度评分、证据链和建议下一步动作等结构化决策支持元数据;(3) 双层治理管道,结合静态能力策略与动态风险升级机制。该范式在服务6个业务领域、85个注册工具的多租户SaaS生产平台中实现并验证。50项真实操作任务对比实验表明,代理优先接口达成88%端到端任务成功率,优于优化后的CRUD基线(64%),提升37.5%;人工干预减少72.7%,自主错误恢复能力提升5.8倍。该范式与MCP等传输层标准正交互补,作为现有工具发现与调用协议之上的语义应用层。
原文摘要 · Abstract (English)
As AI agents transition from research prototypes to enterprise production systems, the tool interfaces they consume remain rooted in human-oriented CRUD paradigms. This paper identifies five fundamental architectural mismatches between conventional APIs and autonomous agent requirements: exact-identifier dependence, rendering-oriented responses, single-shot interaction assumptions, user-equivalent authorization, and opaque error semantics. We propose the Agent-First Tool API paradigm, comprising three integrated mechanisms: (1) a Six-Verb Semantic Protocol that decomposes tool interactions into search, resolve, preview, execute, verify, and recover phases; (2) a Normalized Tool Contract (NTC) providing structured decision-support metadata including confidence scores, evidence chains, and suggested next actions; and (3) a dual-layer governance pipeline combining static capability policies with dynamic risk escalation. The paradigm is implemented and validated in a production multi-tenant SaaS platform serving 85 registered tools across 6 business domains. Comparative experiments on 50 real operational tasks demonstrate that Agent-First APIs achieve 88% end-to-end task success rate versus 64% for optimized CRUD baselines (+37.5%), while reducing required human interventions by 72.7% and improving autonomous error recovery by 5.8x. We establish that the paradigm is orthogonal and complementary to transport-layer standards such as MCP, operating as the semantic application layer above existing tool discovery and invocation protocols.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。