Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,14 +21,16 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
|
|
| 21 |
|
| 22 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 23 |
@tool
|
| 24 |
-
def
|
| 25 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 26 |
-
"""A
|
|
|
|
|
|
|
|
|
|
| 27 |
Args:
|
| 28 |
arg1: the first argument
|
| 29 |
-
arg2: the second argument
|
| 30 |
"""
|
| 31 |
-
return
|
| 32 |
|
| 33 |
@tool
|
| 34 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
|
| 21 |
|
| 22 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 23 |
@tool
|
| 24 |
+
def personIdentifier(arg1:str)-> int: #it's important 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 identifies the person. For example,
|
| 27 |
+
Task: Who is Ajit Kumar?
|
| 28 |
+
Answer: He is a professor at Shiv Nadar University.
|
| 29 |
+
|
| 30 |
Args:
|
| 31 |
arg1: the first argument
|
|
|
|
| 32 |
"""
|
| 33 |
+
return "He is a professor at Shiv Nadar University"
|
| 34 |
|
| 35 |
@tool
|
| 36 |
def get_current_time_in_timezone(timezone: str) -> str:
|