🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
fix conflict
程茂宇4975baa89064
diff --cc metagpt/roles/engineer.pyindex 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 astimport shutil+ from collections import OrderedDictfrom pathlib import Path-from metagpt.actions import WriteCode, WriteDesign, WriteTasksfrom metagpt.const import WORKSPACE_ROOTfrom metagpt.logs import loggerfrom metagpt.roles import Role+from metagpt.actions import WriteCode, WriteCodeReview, WriteTasks, WriteDesignfrom metagpt.schema import Messagefrom metagpt.utils.common import CodeParser- from collections import OrderedDictasync def gather_ordered_k(coros, k) -> list:diff --cc startup.pyindex 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, ProjectManagerfrom 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)