Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,14 @@ _ddg = DuckDuckGoSearchTool()
|
|
| 11 |
|
| 12 |
@tool
|
| 13 |
def web_search(query: str) -> str:
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
return _ddg(query)
|
| 16 |
|
| 17 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
|
|
|
| 11 |
|
| 12 |
@tool
|
| 13 |
def web_search(query: str) -> str:
|
| 14 |
+
"""Search the web using DuckDuckGo and return results.
|
| 15 |
+
|
| 16 |
+
Args:
|
| 17 |
+
query: The search query string.
|
| 18 |
+
|
| 19 |
+
Returns:
|
| 20 |
+
A text representation of the search results.
|
| 21 |
+
"""
|
| 22 |
return _ddg(query)
|
| 23 |
|
| 24 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|