Spaces:
Sleeping
Sleeping
Update tools/web_search.py
Browse files- tools/web_search.py +1 -1
tools/web_search.py
CHANGED
|
@@ -9,7 +9,7 @@ class DuckDuckGoSearchTool(Tool):
|
|
| 9 |
inputs: dict[str, dict[str, Any]] = {
|
| 10 |
"query": {"type": "string", "description": "The search query to perform."}
|
| 11 |
}
|
| 12 |
-
output_type = "
|
| 13 |
|
| 14 |
def __init__(self, max_results: int = 10, **kwargs: Any) -> None:
|
| 15 |
super().__init__()
|
|
|
|
| 9 |
inputs: dict[str, dict[str, Any]] = {
|
| 10 |
"query": {"type": "string", "description": "The search query to perform."}
|
| 11 |
}
|
| 12 |
+
output_type = "string" # switched to "json" as this smolagents version supports it
|
| 13 |
|
| 14 |
def __init__(self, max_results: int = 10, **kwargs: Any) -> None:
|
| 15 |
super().__init__()
|