fcivardi commited on
Commit
0199974
·
verified ·
1 Parent(s): d3ec696

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py CHANGED
@@ -18,6 +18,19 @@ def my_cutom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
18
  """
19
  return "What magic will you build ?"
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 "What magic will you build ?"
20
 
21
+
22
+ # Below is an example of a tool that does nothing. Amaze us with your creativity !
23
+ @tool
24
+ def my_cutom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type
25
+ #Keep this format for the description / args / args description but feel free to modify the tool
26
+ """A tool that multiplies two numbers
27
+ Args:
28
+ arg1: the first argument
29
+ arg2: the second argument
30
+ """
31
+ return str(arg1 * arg2)
32
+
33
+
34
  @tool
35
  def get_current_time_in_timezone(timezone: str) -> str:
36
  """A tool that fetches the current local time in a specified timezone.