超越 pip install:评估用于Python项目自动化安装的LLM智能体
Beyond pip install: Evaluating LLM Agents for the Automated Installation of Python Projects
AI总结:
针对现有LLM软件工程智能体缺失仓库级依赖安装任务的问题,构建含40个Python项目的安装任务基准,提出Installamatic智能体通过检索仓库文档完成安装验证,实验显示55%的仓库十次尝试中至少可成功安装一次,并分析了失败原因与挑战。
摘要:
近期许多研究提出使用基于大语言模型(Large Language Model,LLM)的智能体执行“仓库级”任务,这类任务的宽泛定义是作用范围超出单个文件的一组任务。这引发了一种推测:对这些仓库级任务的编排,有望催生几乎无需人类干预就能独立运作的软件工程智能体。但我们认为,在这类自主软件工程智能体需要完成的任务集合中,缺失了一项重要任务:通过安装其他仓库来满足项目级依赖。\n为探究这项仓库级安装任务的可行性,我们构建了一个包含40个开源Python项目的仓库安装任务基准,每个目标仓库都配有真实安装流程作为基准真值。此外,我们提出了Installamatic智能体,其核心目标是通过从仓库内的文档中搜索相关说明,完成指定仓库的安装并进行验证。\n实证实验结果显示,在研究涉及的仓库中,55%的仓库可被我们的智能体在十次尝试中至少成功自动安装一次。通过进一步分析,我们明确了智能体无法完成仓库安装的常见原因,讨论了设计与实现这类智能体时面临的挑战,并探讨了这类智能体可能为开发者带来的影响。
英文摘要:
Many works have recently proposed the use of Large Language Model (LLM) based agents for performing `repository level' tasks, loosely defined as a set of tasks whose scopes are greater than a single file. This has led to speculation that the orchestration of these repository-level tasks could lead to software engineering agents capable of performing almost independently of human intervention. However, of the suite of tasks that would need to be performed by this autonomous software engineering agent, we argue that one important task is missing, which is to fulfil project level dependency by installing other repositories. To investigate the feasibility of this repository level installation task, we introduce a benchmark of of repository installation tasks curated from 40 open source Python projects, which includes a ground truth installation process for each target repository. Further, we propose Installamatic, an agent which aims to perform and verify the installation of a given repository by searching for relevant instructions from documentation in the repository. Empirical experiments reveal that that 55% of the studied repositories can be automatically installed by our agent at least one out of ten times. Through further analysis, we identify the common causes for our agent's inability to install a repository, discuss the challenges faced in the design and implementation of such an agent and consider the implications that such an agent could have for developers.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。