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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -28,6 +28,9 @@ from smolagents.models import InferenceClientModel
28
  from smolagents import CodeAgent
29
 
30
  class WebSearchTool(Tool):
 
 
 
31
  def __init__(self):
32
  self.agent = CodeAgent(
33
  tools=[DuckDuckGoSearchTool()],
 
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."
33
+
34
  def __init__(self):
35
  self.agent = CodeAgent(
36
  tools=[DuckDuckGoSearchTool()],