create_swarm_transition
Parameters:
Returns:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
create_swarm_transition(
initial_agent: ConversableAgent,
tool_execution: ConversableAgent,
swarm_agent_names: list[str],
user_agent: UserProxyAgent | None,
swarm_after_work: AfterWorkOption | Callable[..., Any] | None
) -> Callable[[ConversableAgent, GroupChat], Agent | Literal['auto'] | None]
| Name | Description |
|---|---|
initial_agent | The first agent to speak Type: ConversableAgent |
tool_execution | The tool execution agent Type: ConversableAgent |
swarm_agent_names | List of all agent names Type: list[str] |
user_agent | Optional user proxy agent Type: UserProxyAgent | None |
swarm_after_work | Swarm-level after work Type: AfterWorkOption | Callable[…, Any] | None |
| Type | Description |
|---|---|
| Callable[[ConversableAgent, GroupChat], Agent | Literal[‘auto’] | None] | Callable transition function (for sync and async swarm chats) |