AgentMesh:一种用于软件开发自动化的协作式多智能体生成式 AI 框架
AgentMesh: A Cooperative Multi-Agent Generative AI Framework for Software Development Automation
AI总结:
本文提出基于 Python 的多智能体框架 AgentMesh,通过 Planner、Coder、Debugger 和 Reviewer 协作完成需求分解、编码、调试与审查,并以案例验证其软件开发自动化能力。
摘要:
软件开发是一个复杂的多阶段过程,传统上需要具备不同专业知识的人员协作完成。我们提出 AgentMesh,这是一个基于 Python 的框架,使用多个相互协作、由 LLM 驱动的智能体来自动化软件开发任务。在 AgentMesh 中,专门化的智能体——Planner、Coder、Debugger 和 Reviewer——协同工作,将高层需求转化为完整实现的代码。Planner 智能体首先将用户请求分解为具体子任务;Coder 智能体以代码实现每个子任务;Debugger 智能体测试并修复代码;Reviewer 智能体验证最终输出的正确性和质量。我们描述了这些智能体及其通信机制的架构与设计,并提供了包括提示策略和工作流编排在内的实现细节。一项案例研究展示了 AgentMesh 通过顺序任务规划、代码生成、迭代调试和最终代码审查来处理一项非平凡的开发请求。我们讨论了在协作智能体之间划分职责如何发挥大型语言模型的优势,同时缓解单智能体的局限。最后,我们审视了当前局限——例如错误传播和上下文扩展——并概述了未来工作,以构建更健壮、可扩展的多智能体 AI 系统,用于软件工程自动化。
英文摘要:
Software development is a complex, multi-phase process traditionally requiring collaboration among individuals with diverse expertise. We propose AgentMesh, a Python-based framework that uses multiple cooperating LLM-powered agents to automate software development tasks. In AgentMesh, specialized agents - a Planner, Coder, Debugger, and Reviewer - work in concert to transform a high-level requirement into fully realized code. The Planner agent first decomposes user requests into concrete subtasks; the Coder agent implements each subtask in code; the Debugger agent tests and fixes the code; and the Reviewer agent validates the final output for correctness and quality. We describe the architecture and design of these agents and their communication, and provide implementation details including prompt strategies and workflow orchestration. A case study illustrates AgentMesh handling a non-trivial development request via sequential task planning, code generation, iterative debugging, and final code review. We discuss how dividing responsibilities among cooperative agents leverages the strengths of large language models while mitigating single-agent limitations. Finally, we examine current limitations - such as error propagation and context scaling - and outline future work toward more robust, scalable multi-agent AI systems for software engineering automation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。