huggingfaceuser54 commited on
Commit
b8e258e
·
verified ·
1 Parent(s): a9e65fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -18,6 +18,16 @@ def find_product(num1:int, num2:int)-> int: #it's import to specify the return t
18
  """
19
  return num1*num2
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.
 
18
  """
19
  return num1*num2
20
 
21
+
22
+ @tool
23
+ def greet(name: str-> str: #it's import to specify the return type
24
+ #Keep this format for the description / args / args description but feel free to modify the tool
25
+ """A tool that greets user when the name is specified
26
+ Args:
27
+ name: a string representing name of the user
28
+ """
29
+ return f"Hello {name}, Have a nice day!!"
30
+
31
  @tool
32
  def get_current_time_in_timezone(timezone: str) -> str:
33
  """A tool that fetches the current local time in a specified timezone.