Fix-swarm-handoff (#4198)

* fix select speaker for swarm

* Fix max-turn = 1 for swarm
This commit is contained in:
Eric Zhu
2024-11-15 10:02:59 -08:00
committed by GitHub
parent c6d69ab4c1
commit 78019dd2dc
4 changed files with 50 additions and 8 deletions

View File

@@ -281,7 +281,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.5"
"version": "3.12.6"
}
},
"nbformat": 4,

View File

@@ -764,6 +764,16 @@
"# Use `asyncio.run(Console(lazy_agent_team.run_stream(task=\"It is raining in New York.\")))` when running in a script.\n",
"await Console(lazy_agent_team.run_stream(task=\"It is raining in New York.\"))"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"```{note}\n",
"Currently the handoff termination approach does not work with {py:class}`~autogen_agentchat.teams.Swarm`.\n",
"Please stay tuned for the updates.\n",
"```"
]
}
],
"metadata": {