Update app.py
#252
by
SnowHA
- opened
app.py
CHANGED
|
@@ -20,10 +20,10 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
|
|
| 20 |
|
| 21 |
@tool
|
| 22 |
def get_current_time_in_timezone(timezone: str) -> str:
|
| 23 |
-
|
| 24 |
Args:
|
| 25 |
timezone: A string representing a valid timezone (e.g., 'America/New_York').
|
| 26 |
-
|
| 27 |
try:
|
| 28 |
# Create timezone object
|
| 29 |
tz = pytz.timezone(timezone)
|
|
|
|
| 20 |
|
| 21 |
@tool
|
| 22 |
def get_current_time_in_timezone(timezone: str) -> str:
|
| 23 |
+
"""A tool that fetches the current local time in a specified timezone.
|
| 24 |
Args:
|
| 25 |
timezone: A string representing a valid timezone (e.g., 'America/New_York').
|
| 26 |
+
"""
|
| 27 |
try:
|
| 28 |
# Create timezone object
|
| 29 |
tz = pytz.timezone(timezone)
|