From 9c03cd5775a06a87f7411acb9b8cad5859de9eb3 Mon Sep 17 00:00:00 2001 From: NikeHop <38683970+NikeHop@users.noreply.github.com> Date: Fri, 4 Apr 2025 00:36:29 +0100 Subject: [PATCH] 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 --- docs/docs/integrations/tools/serpapi.ipynb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/integrations/tools/serpapi.ipynb b/docs/docs/integrations/tools/serpapi.ipynb index c2dc69cec13..100866b2059 100644 --- a/docs/docs/integrations/tools/serpapi.ipynb +++ b/docs/docs/integrations/tools/serpapi.ipynb @@ -106,9 +106,9 @@ "from langchain_core.tools import Tool\n", "\n", "# You can create the tool to pass to an agent\n", - "repl_tool = Tool(\n", - " name=\"python_repl\",\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", + "custom_tool = Tool(\n", + " name=\"web search\",\n", + " description=\"Search the web for information\",\n", " func=search.run,\n", ")" ]