Recently, remarkable progress has been made in automated task-solving through the use of multi-agent driven by large language models (LLMs). However, existing LLM-based multi-agent works primarily focus on solving simple dialogue tasks, and complex tasks are rarely studied, mainly due to the LLM hallucination problem. This type of hallucination becomes cascading when naively chaining multiple intelligent agents, resulting in a failure to effectively address complex problems. Therefore, we introduce MetaGPT, an innovative framework that incorporates efficient human workflows as a meta programming approach into LLM-based multi-agent collaboration. Specifically, MetaGPT encodes Standardized Operating Procedures (SOPs) into prompts to enhance structured coordination. Subsequently, it mandates modular outputs, empowering agents with domain expertise comparable to human professionals, to validate outputs and minimize compounded errors. In this way, MetaGPT leverages the assembly line paradigm to assign diverse roles to various agents, thereby establishing a framework that can effectively and cohesively deconstruct complex multi-agent collaborative problems. Our experiments on collaborative software engineering benchmarks demonstrate that MetaGPT generates more coherent and correct solutions compared to existing chat-based multi-agent systems. This highlights the potential of integrating human domain knowledge into multi-agent systems, thereby creating new opportunities to tackle complex real-world challenges. The GitHub repository of this project is publicly available on:https://github.com/geekan/MetaGPT.
翻译:近期,通过基于大语言模型的多智能体在自动化任务求解方面取得了显著进展。然而,现有基于LLM的多智能体研究主要聚焦于简单对话任务,复杂任务的研究仍较为匮乏,这主要归因于大语言模型的幻觉问题。当简单串联多个智能体时,此类幻觉问题会产生级联效应,导致无法有效解决复杂问题。为此,我们提出MetaGPT这一创新框架,将高效的人类工作流作为元编程方法融入基于LLM的多智能体协作中。具体而言,MetaGPT将标准化操作流程编码为提示词以增强结构协调性,进而要求模块化输出,使智能体具备与人类专家相当的领域专业知识,从而验证输出结果并减少复合错误。通过这种方式,MetaGPT借鉴流水线范式为不同智能体分配多样化角色,构建能够有效且连贯地解构复杂多智能体协作问题的框架。我们在协作软件工程基准上的实验表明,与现有基于对话的多智能体系统相比,MetaGPT能生成更连贯、更正确的解决方案。这凸显了将人类领域知识融入多智能体系统的潜力,为应对复杂的现实世界挑战开辟了新途径。本项目的GitHub仓库已在https://github.com/geekan/MetaGPT公开提供。