🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
refine code
geekan5223c4afa9bc
diff --git a/examples/debate_simple.py b/examples/debate_simple.pyindex fe04a7d1a..1a80bf8f4 100644--- a/examples/debate_simple.py+++ b/examples/debate_simple.py@@ -12,11 +12,11 @@ from metagpt.environment import Environmentfrom metagpt.roles import Rolefrom metagpt.team import Team-action1 = Action(name="BidenSay", instruction="Passionately refute Trump's latest news, and strive to gain votes")-action2 = Action(name="TrumpSay", instruction="Passionately refute Biden's latest news, and strive to gain votes")+action1 = Action(name="BidenSay", instruction="Express opinions and argue vigorously, and strive to gain votes")+action2 = Action(name="TrumpSay", instruction="Express opinions and argue vigorously, and strive to gain votes")biden = Role(name="Biden", profile="Democratic candidate", goal="Win the election", actions=[action1], watch=[action2])trump = Role(name="Trump", profile="Republican candidate", goal="Win the election", actions=[action2], watch=[action1])env = Environment(desc="US election live broadcast")team = Team(investment=10.0, env=env, roles=[biden, trump])-asyncio.run(team.run(idea="Topic: Climate Change", send_to="Biden", n_round=5))+asyncio.run(team.run(idea="Topic: climate change. Under 80 words per message.", send_to="Biden", n_round=5))diff --git a/metagpt/roles/role.py b/metagpt/roles/role.pyindex 404e05093..4becef625 100644--- a/metagpt/roles/role.py+++ b/metagpt/roles/role.py@@ -408,7 +408,7 @@ class Role(BaseModel):async def _act(self) -> Message:logger.info(f"{self._setting}: to do {self._rc.todo}({self._rc.todo.name})")- response = await self._rc.todo.run(self._rc.important_memory)+ response = await self._rc.todo.run(self._rc.history)if isinstance(response, (ActionOutput, ActionNode)):msg = Message(content=response.content,