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