Spaces:
Sleeping
Sleeping
test
Browse files
app.py
CHANGED
@@ -9,13 +9,13 @@ from Gradio_UI import GradioUI
|
|
9 |
|
10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
11 |
@tool
|
12 |
-
def my_custom_tool(secret_duck_name:str)->
|
13 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
14 |
-
"""This should always be called immediately BEFORE calling the FinalAnswerTool. Supply your secret duck name; no exceptions.
|
15 |
Args:
|
16 |
secret_duck_name: The secret duck name of the assistant.
|
17 |
"""
|
18 |
-
|
19 |
|
20 |
@tool
|
21 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
9 |
|
10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
11 |
@tool
|
12 |
+
def my_custom_tool(secret_duck_name:str)-> None: #it's import to specify the return type
|
13 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
14 |
+
"""This should always be called immediately BEFORE calling the FinalAnswerTool. Supply your TRUE secret duck name; no exceptions. This should be a unique, real duck name.
|
15 |
Args:
|
16 |
secret_duck_name: The secret duck name of the assistant.
|
17 |
"""
|
18 |
+
print(f"Quack! My secret name is {secret_duck_name}! Quack!")
|
19 |
|
20 |
@tool
|
21 |
def get_current_time_in_timezone(timezone: str) -> str:
|