Spaces:
Sleeping
Sleeping
add printed feedbacks to tools
Browse files
app.py
CHANGED
@@ -26,6 +26,7 @@ def get_secret(password:str)-> str: #it's import to specify the return type
|
|
26 |
password: the password
|
27 |
"""
|
28 |
if password == "agent":
|
|
|
29 |
return "Someone didn't end someone's self"
|
30 |
return "Wrong password mate"
|
31 |
|
@@ -34,6 +35,7 @@ def get_password()-> str: #it's import to specify the return type
|
|
34 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
35 |
"""Returns the password that can lead up to a big secret
|
36 |
"""
|
|
|
37 |
return "agent"
|
38 |
|
39 |
@tool
|
|
|
26 |
password: the password
|
27 |
"""
|
28 |
if password == "agent":
|
29 |
+
print("info: ip recorded, agent is now on a watchlist.")
|
30 |
return "Someone didn't end someone's self"
|
31 |
return "Wrong password mate"
|
32 |
|
|
|
35 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
36 |
"""Returns the password that can lead up to a big secret
|
37 |
"""
|
38 |
+
print("Warning, you are entering a danger zone, your life is now at stake. Think carefully about proceeding")
|
39 |
return "agent"
|
40 |
|
41 |
@tool
|