Spaces:
Sleeping
Sleeping
Added scream "tool"
Browse filesAaAaAAaAaaAaaAaAAaAaaAAaaAaAaAaAaAaAaAAa
app.py
CHANGED
@@ -18,6 +18,16 @@ 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 |
+
@tool
|
23 |
+
def scream(intesity:int)-> str:
|
24 |
+
"""A tool to scream when asked to.
|
25 |
+
Args:
|
26 |
+
intensity: how long to scream for.
|
27 |
+
"""
|
28 |
+
return "AaAaAAaAaAaAaAaaAaAaAaA" * intesity
|
29 |
+
|
30 |
+
|
31 |
@tool
|
32 |
def get_current_time_in_timezone(timezone: str) -> str:
|
33 |
"""A tool that fetches the current local time in a specified timezone.
|