MasterOfHugs commited on
Commit
937f42b
·
verified ·
1 Parent(s): 6b5706e

Update tools/web_search.py

Browse files
Files changed (1) hide show
  1. tools/web_search.py +2 -2
tools/web_search.py CHANGED
@@ -1,9 +1,9 @@
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.'}}
 
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.'}}