使用多智能体系统自主升级遗留Web应用
Autonomous Legacy Web Application Upgrades Using a Multi-Agent System
AI总结:
本文提出一种基于LLM的多智能体系统,通过多阶段任务分配自主升级遗留Web应用,实验表明其能跨任务保持上下文并在部分场景下提升代码质量,为遗留代码更新提供了基础。
摘要:
将大型语言模型(LLM)用于自主代码生成正受到新兴技术的关注。随着LLM能力的扩展,它们提供了代码重构、安全性增强和遗留应用升级等新可能。许多过时的Web应用带来了安全性和可靠性挑战,但由于升级的复杂性和成本,企业仍在继续使用它们。为了解决这个问题,我们提出了一个基于LLM的多智能体系统,可自主将遗留Web应用升级到最新版本。该系统将任务分配到多个阶段,更新所有相关文件。为了评估其有效性,我们采用了零样本学习(ZSL)和单样本学习(OSL)提示,并在两种情况下应用了相同的指令。评估涉及更新视图文件并测量输出中的错误数量和类型。对于复杂任务,我们计算了成功满足的要求数量。实验将该系统与独立的LLM执行进行了比较,并多次重复以考虑随机行为。结果表明,我们的系统在任务和智能体之间保持上下文,在某些情况下比基础模型提高了解决方案质量。本研究为未来在遗留代码更新中的模型实现奠定了基础。此外,研究结果突显了LLM以高精度更新小型过时文件的能力,即使使用基本提示也是如此。源代码在GitHub上公开:https://github.com/alasalm1/Multi-agent-pipeline。
英文摘要:
The use of Large Language Models (LLMs) for autonomous code generation is gaining attention in emerging technologies. As LLM capabilities expand, they offer new possibilities such as code refactoring, security enhancements, and legacy application upgrades. Many outdated web applications pose security and reliability challenges, yet companies continue using them due to the complexity and cost of upgrades. To address this, we propose an LLM-based multi-agent system that autonomously upgrades legacy web applications to the latest versions. The system distributes tasks across multiple phases, updating all relevant files. To evaluate its effectiveness, we employed Zero-Shot Learning (ZSL) and One-Shot Learning (OSL) prompts, applying identical instructions in both cases. The evaluation involved updating view files and measuring the number and types of errors in the output. For complex tasks, we counted the successfully met requirements. The experiments compared the proposed system with standalone LLM execution, repeated multiple times to account for stochastic behavior. Results indicate that our system maintains context across tasks and agents, improving solution quality over the base model in some cases. This study provides a foundation for future model implementations in legacy code updates. Additionally, findings highlight LLMs' ability to update small outdated files with high precision, even with basic prompts. The source code is publicly available on GitHub: https://github.com/alasalm1/Multi-agent-pipeline.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。