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",