add qa engineer in startup

This commit is contained in:
yzlin 2023-07-25 23:26:16 +08:00
parent 84b6c2bf8a
commit 9ba18672c6

View file

@ -11,7 +11,11 @@ from metagpt.software_company import SoftwareCompany
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), QaEngineer()])
company.hire([ProductManager(),
Architect(),
ProjectManager(),
Engineer(n_borg=5, use_code_review=code_review),
QaEngineer()])
company.invest(investment)
company.start_project(idea)
await company.run(n_round=n_round)