ncuxomun commited on
Commit
a309caa
·
verified ·
1 Parent(s): 9f39c86

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -33,6 +33,13 @@ def get_current_time_in_timezone(timezone: str) -> str:
33
  except Exception as e:
34
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
35
 
 
 
 
 
 
 
 
36
 
37
  final_answer = FinalAnswerTool()
38
 
 
33
  except Exception as e:
34
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
35
 
36
+ @tool
37
+ def greetings(timezone: str) -> str:
38
+ """A tool that greets the user by using the provided timezone
39
+ Args:
40
+ timezone (str): A string representing a valid timezone (e.g., 'America/New_York').
41
+ """
42
+ return f"Hi! {timezone} greets you!"
43
 
44
  final_answer = FinalAnswerTool()
45