Spaces:
Sleeping
Sleeping
Update tools.py
Browse files
tools.py
CHANGED
|
@@ -67,7 +67,7 @@ class ImageReaderTool:
|
|
| 67 |
return f"Failed to download image for task {task_id}"
|
| 68 |
|
| 69 |
|
| 70 |
-
#
|
| 71 |
class WebSearchTool:
|
| 72 |
name = "web_search"
|
| 73 |
|
|
@@ -90,4 +90,3 @@ class WebSearchTool:
|
|
| 90 |
output = f"Search error: {e}"
|
| 91 |
print(f"WebSearchTool returning result (first 100 chars): {output[:100]}...")
|
| 92 |
return output
|
| 93 |
-
|
|
|
|
| 67 |
return f"Failed to download image for task {task_id}"
|
| 68 |
|
| 69 |
|
| 70 |
+
# Web search tool — uses ddgs directly to avoid smolagents DuckDuckGoSearchTool package check
|
| 71 |
class WebSearchTool:
|
| 72 |
name = "web_search"
|
| 73 |
|
|
|
|
| 90 |
output = f"Search error: {e}"
|
| 91 |
print(f"WebSearchTool returning result (first 100 chars): {output[:100]}...")
|
| 92 |
return output
|
|
|