From 7659a72ea5b465d512687dbafbb8c8b9906b92ef Mon Sep 17 00:00:00 2001 From: LjjJzd <3542531707@qq.com> Date: Tue, 16 Jun 2026 20:37:30 +0800 Subject: [PATCH] docs: fix Composio register_tools agent order --- notebook/agentchat_function_call_with_composio.ipynb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/notebook/agentchat_function_call_with_composio.ipynb b/notebook/agentchat_function_call_with_composio.ipynb index 1eea9e908fc4..a49252c2118a 100644 --- a/notebook/agentchat_function_call_with_composio.ipynb +++ b/notebook/agentchat_function_call_with_composio.ipynb @@ -187,7 +187,7 @@ "source": [ "## Initialize Composio's Toolset\n", "\n", - "Now, we initialize Composio's toolset and get the tools and actions we need for the agent. Then, we register the tools with the `UserProxyAgent`.\n", + "Now, we initialize Composio's toolset and get the tools and actions we need for the agent. Then, we register the tools so the assistant can call them and the `UserProxyAgent` can execute them.\n", "\n", "The agent can then call the tools using function calling." ] @@ -205,8 +205,8 @@ "\n", "# Get the required tools and register them with the agents\n", "email_tools = composio_toolset.register_tools(\n", - " caller=user_proxy,\n", - " executor=chatbot,\n", + " caller=chatbot,\n", + " executor=user_proxy,\n", " actions=[\n", " Action.GMAIL_REPLY_TO_THREAD,\n", " ],\n",