Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,15 @@ from tools.web_search import DuckDuckGoSearchTool
|
|
| 10 |
|
| 11 |
@tool
|
| 12 |
def DuckDuckGoSearchTool (web_search: str) -> str:
|
| 13 |
-
""""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
inputs = {'query': {'type': 'string','description': 'The search query to perform.'}}
|
| 15 |
output_type = "string"
|
| 16 |
|
|
|
|
| 10 |
|
| 11 |
@tool
|
| 12 |
def DuckDuckGoSearchTool (web_search: str) -> str:
|
| 13 |
+
""""Performs a DuckDuckGo web search based on your query (think a Google search) then returns the top search results.Perform a DuckDuckGo search and return formatted results.
|
| 14 |
+
|
| 15 |
+
Args:
|
| 16 |
+
web_search (str): The query string to search for.
|
| 17 |
+
|
| 18 |
+
Returns:
|
| 19 |
+
str: A formatted string containing the search results.
|
| 20 |
+
"""
|
| 21 |
+
# your implementation here
|
| 22 |
inputs = {'query': {'type': 'string','description': 'The search query to perform.'}}
|
| 23 |
output_type = "string"
|
| 24 |
|