Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,6 +17,14 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
|
|
| 17 |
"""
|
| 18 |
return "What magic will you build ?"
|
| 19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
@tool
|
| 21 |
def get_current_time_in_timezone(timezone: str) -> str:
|
| 22 |
"""A tool that fetches the current local time in a specified timezone.
|
|
|
|
| 17 |
"""
|
| 18 |
return "What magic will you build ?"
|
| 19 |
|
| 20 |
+
@tool
|
| 21 |
+
def tell a joke(arg1:str)-> str: #it's import to specify the return type
|
| 22 |
+
"""A tool that creates a joke about a specific topic
|
| 23 |
+
Args:
|
| 24 |
+
arg1: the topic
|
| 25 |
+
"""
|
| 26 |
+
return "Why did the giraffe think this topic was funny: " + arg1
|
| 27 |
+
|
| 28 |
@tool
|
| 29 |
def get_current_time_in_timezone(timezone: str) -> str:
|
| 30 |
"""A tool that fetches the current local time in a specified timezone.
|