arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2405.04236cs.SE
收藏

语义 API 对齐:将高层用户目标链接到 API

Semantic API Alignment: Linking High-level User Goals to APIs

Robert Feldt, Riccardo Coppola

AI总结:

本文提出 SEAL 方法与 LLM 智能体架构,将用户高层目标经 GORE 子目标分析链接到 REST API 调用,并以 GitHub 统计 API 案例验证其可行性。

摘要:

大语言模型(LLM)正成为自动化和辅助各种软件开发任务的关键,这些任务既包括需求工程中基于文本的任务,也包括编码任务。通常,这些模型被用于自动化现有任务的一小部分,但我们提出一个更广阔的愿景,即利用现有库跨越从需求工程到实现的多个步骤。我们将这种方法称为 Semantic API Alignment(SEAL,语义 API 对齐),旨在弥合用户高层目标与一个或多个 API 的具体函数之间的差距。在这篇立场论文中,我们提出一种系统架构,其中一组由 LLM 驱动的“智能体”将此类高层目标与适当的 API 调用相匹配。该系统可以通过寻找匹配链接来促进自动化编程,或者在不匹配时解释差异,以指导人工干预或进一步开发。作为初步试点,本文通过将 LLM 应用于面向目标的需求工程(GORE)来展示这一概念,具体方式是通过子目标分析,使其与 REST API 规范对齐,并通过一个涉及 GitHub 统计 API 的案例研究进行说明。我们讨论了该方法增强软件开发和需求工程中复杂任务的潜力,并概述了未来研究方向。

英文摘要:

Large Language Models (LLMs) are becoming key in automating and assisting various software development tasks, including text-based tasks in requirements engineering but also in coding. Typically, these models are used to automate small portions of existing tasks, but we present a broader vision to span multiple steps from requirements engineering to implementation using existing libraries. This approach, which we call Semantic API Alignment (SEAL), aims to bridge the gap between a user's high-level goals and the specific functions of one or more APIs. In this position paper, we propose a system architecture where a set of LLM-powered ``agents'' match such high-level objectives with appropriate API calls. This system could facilitate automated programming by finding matching links or, alternatively, explaining mismatches to guide manual intervention or further development. As an initial pilot, our paper demonstrates this concept by applying LLMs to Goal-Oriented Requirements Engineering (GORE), via sub-goal analysis, for aligning with REST API specifications, specifically through a case study involving a GitHub statistics API. We discuss the potential of our approach to enhance complex tasks in software development and requirements engineering and outline future directions for research.

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

↑