Remove termination condition from team constructor (#4025)

* Remove termination condition from team constructor

* fix usage
This commit is contained in:
Eric Zhu
2024-11-01 05:50:20 -07:00
committed by GitHub
parent cff7d842a6
commit 369ffb511b
6 changed files with 9 additions and 15 deletions

View File

@@ -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)"
]