fix conflict

This commit is contained in:
geekan 2023-12-23 19:49:05 +08:00
parent bd119de2c1
commit a5b6d0817d
3 changed files with 14 additions and 14 deletions

View file

@ -7,16 +7,16 @@
"""
import asyncio
from metagpt.actions import Action, UserRequirement
from metagpt.actions import Action
from metagpt.environment import Environment
from metagpt.roles import Role
from metagpt.team import Team
action1 = Action(name="BidenSay", instruction="发表政见,充满激情的反驳特朗普最新消息,尽最大努力获得选票")
action2 = Action(name="TrumpSay", instruction="发表政见充满激情的反驳拜登最新消息尽最大努力获得选票MAGA")
biden = Role(name="拜登", profile="民主党候选人", goal="大选获胜", actions=[action1], watch=[action2, UserRequirement])
trump = Role(name="特朗普", profile="共和党候选人", goal="大选获胜", actions=[action2], watch=[action1])
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")
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="主题:气候变化,用中文辩论", n_round=5))
asyncio.run(team.run(idea="Topic: Climate Change", send_to="Biden", n_round=5))