Rename web search tool gto WebSearchTool
This commit is contained in:
parent
775f6e8d7f
commit
48b7f53a54
|
@ -139,9 +139,9 @@ class UserInputTool(Tool):
|
||||||
return user_input
|
return user_input
|
||||||
|
|
||||||
|
|
||||||
class DuckDuckGoSearchTool(Tool):
|
class WebSearchTool(Tool):
|
||||||
name = "web_search"
|
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'."""
|
Each result has keys 'title', 'href' and 'body'."""
|
||||||
inputs = {
|
inputs = {
|
||||||
"query": {"type": "string", "description": "The search query to perform."}
|
"query": {"type": "string", "description": "The search query to perform."}
|
||||||
|
@ -223,7 +223,7 @@ __all__ = [
|
||||||
"PythonInterpreterTool",
|
"PythonInterpreterTool",
|
||||||
"FinalAnswerTool",
|
"FinalAnswerTool",
|
||||||
"UserInputTool",
|
"UserInputTool",
|
||||||
"DuckDuckGoSearchTool",
|
"WebSearchTool",
|
||||||
"VisitWebpageTool",
|
"VisitWebpageTool",
|
||||||
"SpeechToTextTool",
|
"SpeechToTextTool",
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue