yetessam commited on
Commit
536ce3c
·
verified ·
1 Parent(s): 67c8f73

Update agents/time_tool.py

Browse files
Files changed (1) hide show
  1. 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: