mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-05 14:55:18 +02:00
rm test in examples/ui_role.py
This commit is contained in:
parent
e32f9e76ed
commit
e3acbbec3e
1 changed files with 0 additions and 18 deletions
|
|
@ -273,22 +273,4 @@ class UI(Role):
|
|||
if skill == "SD":
|
||||
self.sd_engine = self.load_sd_engine()
|
||||
logger.info(f"load skill engine {self.sd_engine}")
|
||||
|
||||
|
||||
async def startup(idea: str, investment: float = 3.0, n_round: int = 5):
|
||||
"""Run a startup. Be a boss."""
|
||||
company = SoftwareCompany()
|
||||
company.hire([ProductManager(), UI()])
|
||||
company.invest(investment)
|
||||
company.start_project(idea)
|
||||
await company.run(n_round=n_round)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
import asyncio
|
||||
from metagpt.utils.common import OutputParser, CodeParser
|
||||
|
||||
# ws_name = CodeParser.parse_str(block="Python package name", text=context[-1].content)
|
||||
event_loop = asyncio.get_event_loop()
|
||||
result = event_loop.run_until_complete(startup(idea="贪食蛇小游戏", investment=3.0, n_round=3))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue