pookzzz commited on
Commit
7978dda
·
verified ·
1 Parent(s): ae7a494
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -18,6 +18,16 @@ def my_custom_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
+ @tool
22
+ def repeat_string_tool(arg1: str, arg2: int) -> str:
23
+ """A tool that repeats the input string a specified number of times.
24
+ Args:
25
+ arg1: The input string that will be repeated.
26
+ arg2: The number of times the input string should be repeated. Must be a non-negative integer.
27
+ """
28
+ result = arg1 * arg2
29
+ return result
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.