MasterOfHugs commited on
Commit
f833604
·
verified ·
1 Parent(s): 45cc441

Update tools/web_search.py

Browse files
Files changed (1) hide show
  1. tools/web_search.py +4 -3
tools/web_search.py CHANGED
@@ -1,6 +1,7 @@
1
- from typing import Any, Optional
2
- from smolagents.tools import Tool
3
- import duckduckgo_search
 
4
 
5
  class DuckDuckGoSearchTool(Tool):
6
  name = "web_search"
 
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"