Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,6 +33,15 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 33 |
except Exception as e:
|
| 34 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
@tool
|
| 38 |
def mirror_user(happy: str) -> str:
|
|
|
|
| 33 |
except Exception as e:
|
| 34 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 35 |
|
| 36 |
+
# Web search tool using DuckDuckGo
|
| 37 |
+
@tool
|
| 38 |
+
def duckduckgo_web_search(query: str) -> list:
|
| 39 |
+
"""A tool that performs a web search using DuckDuckGo and returns relevant results.
|
| 40 |
+
Args:
|
| 41 |
+
query: The search term or question to look up.
|
| 42 |
+
Returns:
|
| 43 |
+
A list of search results containing URLs and descriptions.
|
| 44 |
+
"""
|
| 45 |
|
| 46 |
@tool
|
| 47 |
def mirror_user(happy: str) -> str:
|