Spaces:
Sleeping
Sleeping
added mySum as a new tool
Browse files
app.py
CHANGED
|
@@ -18,6 +18,18 @@ 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 |
+
|
| 22 |
+
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 23 |
+
@tool
|
| 24 |
+
def mySum(arg1:int, arg2:int)-> int: #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 finds the sum of two given numbers
|
| 27 |
+
Args:
|
| 28 |
+
arg1: the first argument
|
| 29 |
+
arg2: the second argument
|
| 30 |
+
"""
|
| 31 |
+
return arg1+ arg2
|
| 32 |
+
|
| 33 |
@tool
|
| 34 |
def get_current_time_in_timezone(timezone: str) -> str:
|
| 35 |
"""A tool that fetches the current local time in a specified timezone.
|