Harsha7989 commited on
Commit
95d4ff9
·
verified ·
1 Parent(s): ae7a494

sum of 1 to n

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -17,6 +17,10 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
17
  arg2: the second argument
18
  """
19
  return "What magic will you build ?"
 
 
 
 
20
 
21
  @tool
22
  def get_current_time_in_timezone(timezone: str) -> str:
 
17
  arg2: the second argument
18
  """
19
  return "What magic will you build ?"
20
+ @tool
21
+ def sum_one_to_n(arg:int)-> int:
22
+ sum = n*(n+1)/2
23
+ return sum
24
 
25
  @tool
26
  def get_current_time_in_timezone(timezone: str) -> str: