Spaces:
Sleeping
Sleeping
sum of 1 to n
Browse files
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:
|