Recently, remarkable progress has been made in automated task-solving through the use of multi-agents driven by large language models (LLMs). However, existing works primarily focuses on simple tasks lacking exploration and investigation in complicated tasks mainly due to the hallucination problem. This kind of hallucination gets amplified infinitely as multiple intelligent agents interact with each other, resulting in failures when tackling complicated problems.Therefore, we introduce MetaGPT, an innovative framework that infuses effective human workflows as a meta programming approach into LLM-driven multi-agent collaboration. In particular, MetaGPT first encodes Standardized Operating Procedures (SOPs) into prompts, fostering structured coordination. And then, it further mandates modular outputs, bestowing agents with domain expertise paralleling human professionals to validate outputs and reduce compounded errors. In this way, MetaGPT leverages the assembly line work model to assign diverse roles to various agents, thus establishing a framework that can effectively and cohesively deconstruct complex multi-agent collaborative problems. Our experiments conducted on collaborative software engineering tasks illustrate MetaGPT's capability in producing comprehensive solutions with higher coherence relative to existing conversational and chat-based multi-agent systems. This underscores the potential of incorporating human domain knowledge into multi-agents, thus opening up novel avenues for grappling with intricate real-world challenges. The GitHub repository of this project is made publicly available on: https://github.com/geekan/MetaGPT
翻译:近期,基于大语言模型驱动的多智能体在自动任务求解方面取得了显著进展。然而,现有工作主要聚焦于简单任务,缺乏对复杂任务的探索与研究,这主要源于幻觉问题。这种幻觉现象在多智能体交互过程中会被无限放大,导致在处理复杂问题时频繁失败。为此,我们提出MetaGPT这一创新框架,将人类高效工作流作为元编程方法注入大语言模型驱动的多智能体协作中。具体而言,MetaGPT首先将标准操作流程编码为提示词,促进结构化协作;随后进一步强制模块化输出,赋予智能体与人类专家匹敌的领域专业知识,以验证输出并减少复合误差。通过这种方式,MetaGPT借鉴流水线工作模式为不同智能体分配差异化角色,构建了能够高效且协同地解构复杂多智能体协作问题的框架。我们在协作软件工程任务上的实验表明,相较于现有基于对话和聊天的多智能体系统,MetaGPT能够生成具有更高连贯性的综合性解决方案。这凸显了将人类领域知识融入多智能体的潜力,为应对真实世界的复杂挑战开辟了新途径。本项目GitHub仓库已公开至:https://github.com/geekan/MetaGPT