Update app.py
Browse files
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()],
|