Update tools.py
Browse files
tools.py
CHANGED
|
@@ -44,7 +44,8 @@ from smolagents import DuckDuckGoSearchTool
|
|
| 44 |
|
| 45 |
|
| 46 |
def web_search(query, max_results=3):
|
| 47 |
-
|
|
|
|
| 48 |
return result
|
| 49 |
|
| 50 |
def wiki_search(query):
|
|
|
|
| 44 |
|
| 45 |
|
| 46 |
def web_search(query, max_results=3):
|
| 47 |
+
searchtool = DuckDuckGoSearchTool(query)
|
| 48 |
+
result = searchtool(query)
|
| 49 |
return result
|
| 50 |
|
| 51 |
def wiki_search(query):
|