Agent4Spec: An LLM-based Agentic System to Optimize API Specifications through Automated Validation and Market Analysis
Yongjian Tang, Costel Moraru, Doruk Tuncel, Hanya Elhashemy, Steffen Klepke, Thomas Runkler
Abstract
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.
Create a lesson
Metadata
- Categories
- cs.SE, cs.AI
- Comments
- Accepted to FLLM main track
Related papers
When Messages Go Wrong: Understanding Communication Faults in LLM-Based Multi-Agent Systems
Shared title terminologycs.SEJinhao Zhou, Xiaoyu Zhang, Jiongchi Yu et al.
Horizontal Models, Vertical Systems: A Position on Where Domain Knowledge Belongs in Enterprise Agents
Shared title terminologycs.SELuciano Lucindo Chaves
Does Training-Free Delegation Improve Cost Efficiency in Multi-Agent Software Engineering Systems? An Empirical Study
Shared title terminologycs.SEMootez Saad, Mohammad Masudur Rahman, Tushar Sharma
Beyond Static GUI Agent: Evolving LLM-based GUI Testing via Dynamic Memory
Shared title terminologycs.SEMengzhuo Chen, Zhe Liu, Chunyang Chen et al.
An Agent-Based Approach for Automating Behavior-Driven Development
Shared title terminologycs.SELuciano Belo de Alcântara Júnior, Diego Elias Costa, João Eduardo Montandon
SimFusion: Multi-Fidelity Simulation-based Testing of Automated Driving Systems
Shared title terminologycs.SELev Sorokin, Berfin Dinler, Alessio Gambi et al.