Fix tool description in serpapi.ipynb (#30660)

Thank you for contributing to LangChain!

- [x] Fix Tool description of SerpAPI tool: "docs: Fix SerpAPI tool
description"



- [ ] Fix SerpAPI tool description: 
- Tool description + name in example initialization of the SerpAPI tool
was still that of the python repl tool.
    - @RLHoeppi

---------

Co-authored-by: Chester Curme <chester.curme@gmail.com>
This commit is contained in:
NikeHop 2025-04-04 00:36:29 +01:00 committed by GitHub
parent af66ab098e
commit 9c03cd5775
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -106,9 +106,9 @@
"from langchain_core.tools import Tool\n", "from langchain_core.tools import Tool\n",
"\n", "\n",
"# You can create the tool to pass to an agent\n", "# You can create the tool to pass to an agent\n",
"repl_tool = Tool(\n", "custom_tool = Tool(\n",
" name=\"python_repl\",\n", " name=\"web search\",\n",
" description=\"A Python shell. Use this to execute python commands. Input should be a valid python command. If you want to see the output of a value, you should print it out with `print(...)`.\",\n", " description=\"Search the web for information\",\n",
" func=search.run,\n", " func=search.run,\n",
")" ")"
] ]