Spaces:
Sleeping
Sleeping
Update web_search.py
Browse files- web_search.py +1 -1
web_search.py
CHANGED
|
@@ -2,7 +2,7 @@ from typing import Any, Optional
|
|
| 2 |
from smolagents.tools import Tool
|
| 3 |
import duckduckgo_search
|
| 4 |
|
| 5 |
-
class
|
| 6 |
name = "web_search"
|
| 7 |
description = "Performs a duckduckgo web search based on your query (think a Google search) then returns the top search results."
|
| 8 |
inputs = {'query': {'type': 'string', 'description': 'The search query to perform.'}}
|
|
|
|
| 2 |
from smolagents.tools import Tool
|
| 3 |
import duckduckgo_search
|
| 4 |
|
| 5 |
+
class web_search_DuckDuckGoSearchTool(Tool):
|
| 6 |
name = "web_search"
|
| 7 |
description = "Performs a duckduckgo web search based on your query (think a Google search) then returns the top search results."
|
| 8 |
inputs = {'query': {'type': 'string', 'description': 'The search query to perform.'}}
|