🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
update CR comment
å¼ å»ºç”Ÿ37ac2a870a68
diff --git a/examples/write_game_code.py b/examples/write_game_code.pyindex 7873f75c7..86412a093 100644--- a/examples/write_game_code.py+++ b/examples/write_game_code.py@@ -2,8 +2,6 @@ import asyncioimport timefrom metagpt.environment.mgx.mgx_env import MGXEnv-from metagpt.roles import Architect, ProductManager-from metagpt.roles.di.data_analyst import DataAnalystfrom metagpt.roles.di.engineer2 import Engineer2from metagpt.roles.di.team_leader import TeamLeaderfrom metagpt.schema import Message@@ -11,15 +9,7 @@ from metagpt.schema import Messageasync def main(requirement="", user_defined_recipient="", enable_human_input=False, allow_idle_time=30):env = MGXEnv()- env.add_roles(- [- TeamLeader(),- Engineer2(),- ProductManager(),- Architect(),- DataAnalyst(),- ]- )+ env.add_roles([TeamLeader(), Engineer2()])msg = Message(content=requirement)env.attach_images(msg) # attach image content if applicable