docs: fix function name in tutorials/agents.ipynb (#22809)

the function called in the flowing example is `create_react_agent`, not
`create_tool_calling_executor `
This commit is contained in:
bincat 2024-06-13 00:30:35 +08:00 committed by GitHub
parent a1268d9e9a
commit 3d6e8547f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -383,7 +383,7 @@
"source": [ "source": [
"Now, we can initalize the agent with the LLM and the tools.\n", "Now, we can initalize the agent with the LLM and the tools.\n",
"\n", "\n",
"Note that we are passing in the `model`, not `model_with_tools`. That is because `create_tool_calling_executor` will call `.bind_tools` for us under the hood." "Note that we are passing in the `model`, not `model_with_tools`. That is because `create_react_agent` will call `.bind_tools` for us under the hood."
] ]
}, },
{ {