mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-27 14:25:20 +02:00
fix conflict
This commit is contained in:
parent
bd119de2c1
commit
a5b6d0817d
3 changed files with 14 additions and 14 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue