Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

fix conflict

程茂宇4975baa89064
diff --cc metagpt/roles/engineer.py
index fdbf829fc,e0e8f97e6..e38518675
--- a/metagpt/roles/engineer.py
+++ b/metagpt/roles/engineer.py
@@@ -6,18 -6,16 +6,16 @@@
@File : engineer.py
"""
import asyncio
- import re
- import ast
import shutil
+ from collections import OrderedDict
from pathlib import Path
-from metagpt.actions import WriteCode, WriteDesign, WriteTasks
from metagpt.const import WORKSPACE_ROOT
from metagpt.logs import logger
from metagpt.roles import Role
+from metagpt.actions import WriteCode, WriteCodeReview, WriteTasks, WriteDesign
from metagpt.schema import Message
from metagpt.utils.common import CodeParser
- from collections import OrderedDict
async def gather_ordered_k(coros, k) -> list:
diff --cc startup.py
index a7e44981a,d700d99f8..e062babb5
--- a/startup.py
+++ b/startup.py
@@@ -1,18 -1,17 +1,20 @@@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import asyncio
+
import fire
+
+ from metagpt.roles import Architect, Engineer, ProductManager, ProjectManager
from metagpt.software_company import SoftwareCompany
- from metagpt.roles import ProjectManager, ProductManager, Architect, Engineer
-async def startup(idea: str, investment: float = 3.0, n_round: int = 5):
+async def startup(idea: str, investment: float = 3.0, n_round: int = 5, code_review: bool = False):
"""Run a startup. Be a boss."""
company = SoftwareCompany()
- company.hire([ProductManager(), Architect(), ProjectManager(), Engineer(n_borg=5)])
+ company.hire([ProductManager(),
+ Architect(),
+ ProjectManager(),
+ Engineer(n_borg=5, use_code_review=code_review)])
company.invest(investment)
company.start_project(idea)
await company.run(n_round=n_round)