diff --git a/website/docs/topics/swarm.ipynb b/website/docs/topics/swarm.ipynb index c509d0de16..3d8a512f55 100644 --- a/website/docs/topics/swarm.ipynb +++ b/website/docs/topics/swarm.ipynb @@ -154,6 +154,7 @@ "- `TERMINATE`: Terminate the chat \n", "- `STAY`: Stay at the current agent \n", "- `REVERT_TO_USER`: Revert to the user agent. Only if a user agent is passed in when initializing. (See below for more details)\n", + "- `SWARM_MANAGER`: Use the internal group chat's `auto` speaker selection method\n", "\n", "The callable function signature is:\n", "`def my_after_work_func(last_speaker: SwarmAgent, messages: List[Dict[str, Any]], groupchat: GroupChat) -> Union[AfterWorkOption, SwarmAgent, str]:`\n", @@ -187,8 +188,6 @@ " ...\n", " after_work=AfterWorkOption.TERMINATE # Or an agent or Callable\n", ")\n", - "\n", - "```\n", "```" ] }, @@ -198,7 +197,9 @@ "source": [ "### SwarmResult\n", "\n", - "The `agent` property of a SwarmResult can be an agent object, an agent's name (string), an `AfterWorkOption`, or `None`.\n", + "When tools are called, a `SwarmResult` can be returned and that can be used to specify the next agent to speak through the `SwarmResult`'s `agent` parameter.\n", + "\n", + "The `agent` property can be an agent object, an agent's name (string), an `AfterWorkOption`, or `None`.\n", "\n", "If it is an agent object or agent name, that agent will be the next speaker.\n", "\n",