From 48b7f53a54eb18386aa994e0be8757d6b8af5d97 Mon Sep 17 00:00:00 2001 From: Aymeric Date: Tue, 24 Dec 2024 12:27:10 +0100 Subject: [PATCH] Rename web search tool gto WebSearchTool --- src/smolagents/default_tools.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/smolagents/default_tools.py b/src/smolagents/default_tools.py index 52b9c09..90a43fa 100644 --- a/src/smolagents/default_tools.py +++ b/src/smolagents/default_tools.py @@ -139,9 +139,9 @@ class UserInputTool(Tool): return user_input -class DuckDuckGoSearchTool(Tool): +class WebSearchTool(Tool): name = "web_search" - description = """Performs a web search based on your query (think a Google search) then returns the top search results as a list of dict elements. + description = """Performs a duckduckgo web search based on your query (think a Google search) then returns the top search results as a list of dict elements. Each result has keys 'title', 'href' and 'body'.""" inputs = { "query": {"type": "string", "description": "The search query to perform."} @@ -223,7 +223,7 @@ __all__ = [ "PythonInterpreterTool", "FinalAnswerTool", "UserInputTool", - "DuckDuckGoSearchTool", + "WebSearchTool", "VisitWebpageTool", "SpeechToTextTool", ]