Harsha7989 commited on
Commit
ebad8d5
·
verified ·
1 Parent(s): 001d3f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -19,6 +19,11 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
19
  return "What magic will you build ?"
20
  @tool
21
  def sum_one_to_n(arg:int)-> str:
 
 
 
 
 
22
  sum = n*(n+1)/2
23
  return f'sum'
24
 
 
19
  return "What magic will you build ?"
20
  @tool
21
  def sum_one_to_n(arg:int)-> str:
22
+ """ A tool that calculates the sum of numbers from to the given number
23
+
24
+ Args:
25
+ arg: the number
26
+ """
27
  sum = n*(n+1)/2
28
  return f'sum'
29