来源:开源中国 时间:2023-07-04 15:17:08
(资料图)
from metagpt.software_company import SoftwareCompanyfrom metagpt.roles import ProjectManager, ProductManager, Architect, Engineerasync def startup(idea: str, investment: str = "$3.0", n_round: int = 5): """Run a startup. Be a boss.""" company = SoftwareCompany() company.hire([ProductManager(), Architect(), ProjectManager(), Engineer()]) company.invest(investment) company.start_project(idea) await company.run(n_round=n_round)
更多信息请访问:https://github.com/geekan/MetaGPT