Sonu313131 commited on
Commit
de9d24e
·
verified ·
1 Parent(s): a060388

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -27,6 +27,10 @@ from smolagents import DuckDuckGoSearchTool
27
  from smolagents.models import InferenceClientModel
28
  from smolagents import CodeAgent
29
 
 
 
 
 
30
  class WebSearchTool(Tool):
31
  name = "web_search"
32
  description = "Searches the web using DuckDuckGo and retrieves relevant answers."
 
27
  from smolagents.models import InferenceClientModel
28
  from smolagents import CodeAgent
29
 
30
+ class CustomDuckDuckGoTool(DuckDuckGoSearchTool):
31
+ name = "duckduckgo_search"
32
+ description = "Searches the web using DuckDuckGo.
33
+
34
  class WebSearchTool(Tool):
35
  name = "web_search"
36
  description = "Searches the web using DuckDuckGo and retrieves relevant answers."