Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

refine code

geekan66d3e8448d16
diff --git a/examples/debate_simple.py b/examples/debate_simple.py
index 1a80bf8f4..aa95c5b85 100644
--- a/examples/debate_simple.py
+++ b/examples/debate_simple.py
@@ -12,11 +12,11 @@ from metagpt.environment import Environment
from metagpt.roles import Role
from metagpt.team import Team
-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])
+action1 = Action(name="AlexSay", instruction="Express your opinion with emotion and don't repeat it")
+action2 = Action(name="BobSay", instruction="Express your opinion with emotion and don't repeat it")
+alex = Role(name="Alex", profile="Democratic candidate", goal="Win the election", actions=[action1], watch=[action2])
+bob = Role(name="Bob", 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])
+team = Team(investment=10.0, env=env, roles=[alex, bob])
-asyncio.run(team.run(idea="Topic: climate change. Under 80 words per message.", send_to="Biden", n_round=5))
+asyncio.run(team.run(idea="Topic: climate change. Under 80 words per message.", send_to="Alex", n_round=5))