mirror of
https://github.com/microsoft/autogen.git
synced 2026-02-07 01:15:10 -05:00
Remove termination condition from team constructor (#4025)
* Remove termination condition from team constructor * fix usage
This commit is contained in:
@@ -81,10 +81,11 @@
|
||||
")\n",
|
||||
"\n",
|
||||
"# add the agent to a team\n",
|
||||
"agent_team = RoundRobinGroupChat([weather_agent], termination_condition=MaxMessageTermination(max_messages=2))\n",
|
||||
"agent_team = RoundRobinGroupChat([weather_agent])\n",
|
||||
"# Note: if running in a Python file directly you'll need to use asyncio.run(agent_team.run(...)) instead of await agent_team.run(...)\n",
|
||||
"result = await agent_team.run(\n",
|
||||
" task=\"What is the weather in New York?\",\n",
|
||||
" termination_condition=MaxMessageTermination(max_messages=2),\n",
|
||||
")\n",
|
||||
"print(\"\\n\", result)"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user