arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2610.13273cs.SEcs.AI
收藏

Agent4Spec:一种基于大语言模型的智能体系统,通过自动化验证与市场分析优化API规范

Agent4Spec: An LLM-based Agentic System to Optimize API Specifications through Automated Validation and Market Analysis

Siemens Research (RPD)(西门子研究(RPD));Technical University of Munich(慕尼黑工业大学)

Yongjian Tang, Costel Moraru, Doruk Tuncel, Hanya Elhashemy, Steffen Klepke, Thomas Runkler

AI总结:

研究针对现有LLM生成API规范的一次性缺陷,提出Agent4Spec多智能体框架,含验证与市场分析流水线,在9种SOTA LLM评估中表现优异,为API开发提供实用工具。

摘要:

API规范是现代软件开发的关键文档,直接影响集成效率与客户端代码生成。尽管近期进展已利用大语言模型(LLM)从源代码生成初始规范,但现有方法将此过程视为一次性事件,忽略了这些制品的持续验证、长期维护及市场驱动型演进需求。为解决该问题,我们提出Agent4Spec,这是一个自主多智能体框架,包含两条独立流水线:(1)验证流水线,用于检测并自动修正OpenAPI语法错误;(2)市场分析流水线,开展竞争性研究,识别与行业领先者相比的功能缺口,并自动生成缺失的API规范功能。我们在两个涵盖通用场景与工业场景的精选API规范数据集上评估Agent4Spec。在9种SOTA LLM中,表现最佳者实现100%的语法错误检测率、超95%的修正实施成功率,且建议的端点改进获得超50%的采纳率,是API开发的实用工具。

英文摘要:

API specifications serve as critical documentation for modern software development, directly impacting integration efficiency and client code generation. While recent advancements have leveraged Large Language Models (LLMs) to generate initial specifications from source code, existing approaches treat this process as a one-time event - overlooking the needs for continuous validation, long-term maintenance, and market-driven evolution of these artifacts. To address this issue, we present Agent4Spec, an autonomous multi-agent framework featuring two distinct pipelines: (1) a validation pipeline that detects and self-corrects OpenAPI syntax errors, and (2) a market analysis pipeline that conducts competitive research, identifies functional gaps against industry leaders, and automatically generates missing API-spec functionalities. We evaluate Agent4Spec on two curated datasets of API specifications spanning both general-purpose and industrial scenarios. Among 9 SOTA LLMs, the top-performer achieves 100% syntax error detection rates and over 95% implementation success for proposed corrections, while securing over 50% adoption rates for suggested endpoint improvements, representing a practical tool for API development.

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

↑