Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,19 +19,6 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
|
|
| 19 |
"""
|
| 20 |
return "What magic will you build ?"
|
| 21 |
|
| 22 |
-
# Web search tool using DuckDuckGo
|
| 23 |
-
@tool
|
| 24 |
-
def web_search(query: str) -> list:
|
| 25 |
-
"""A tool that performs a web search using DuckDuckGo and returns relevant results.
|
| 26 |
-
Args:
|
| 27 |
-
query: The search term or question to look up.
|
| 28 |
-
Returns:
|
| 29 |
-
A list of search results containing URLs and descriptions.
|
| 30 |
-
"""
|
| 31 |
-
search_tool = DuckDuckGoSearchTool()
|
| 32 |
-
results = search_tool(query)
|
| 33 |
-
return results
|
| 34 |
-
|
| 35 |
@tool
|
| 36 |
def get_current_time_in_timezone(timezone: str) -> str:
|
| 37 |
"""A tool that fetches the current local time in a specified timezone.
|
|
|
|
| 19 |
"""
|
| 20 |
return "What magic will you build ?"
|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
@tool
|
| 23 |
def get_current_time_in_timezone(timezone: str) -> str:
|
| 24 |
"""A tool that fetches the current local time in a specified timezone.
|