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)驱动的多智能体实现自动化任务求解取得了显著进展。然而,现有基于LLM的多智能体研究主要聚焦于简单对话任务,复杂任务鲜有涉及,这主要受限于LLM的幻觉问题。当朴素地串联多个智能体时,这种幻觉会形成级联效应,导致无法有效解决复杂问题。为此,我们提出MetaGPT——一种将高效人类工作流作为元编程方法融入基于LLM的多智能体协作的创新框架。具体而言,MetaGPT将标准化操作流程(SOPs)编码为提示词以增强结构化协调,并强制要求模块化输出,赋予智能体与人类专家相媲美的领域专长,从而验证输出并减少复合错误。通过这种方式,MetaGPT采用流水线范式为不同智能体分配多样化角色,构建了能够有效且连贯地解构复杂多智能体协作问题的框架。在协作软件工程基准测试上的实验表明,与现有基于聊天的多智能体系统相比,MetaGPT能生成更连贯且正确的解决方案。这凸显了将人类领域知识整合至多智能体系统的潜力,为应对复杂现实挑战开辟了新路径。该项目的GitHub仓库已公开:https://github.com/geekan/MetaGPT。