Spaces:
Sleeping
Sleeping
Update agents/time_tool.py
Browse files- agents/time_tool.py +3 -0
agents/time_tool.py
CHANGED
@@ -1,6 +1,9 @@
|
|
|
|
|
|
1 |
import pytz
|
2 |
import datetime
|
3 |
|
|
|
4 |
def get_the_current_time_in_timezone(timezone: str) -> str:
|
5 |
"""A tool that fetches the current local time in a specified timezone."""
|
6 |
try:
|
|
|
1 |
+
from smolagents import tool
|
2 |
+
|
3 |
import pytz
|
4 |
import datetime
|
5 |
|
6 |
+
@tool
|
7 |
def get_the_current_time_in_timezone(timezone: str) -> str:
|
8 |
"""A tool that fetches the current local time in a specified timezone."""
|
9 |
try:
|