Update dice tool
Browse files
app.py
CHANGED
@@ -23,8 +23,10 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
|
|
23 |
def toss_a_die(k: int) -> int:
|
24 |
"""A tool to toss a k-sided die / dice and return the value showing on that die / dice.
|
25 |
Args:
|
26 |
-
k
|
27 |
-
|
|
|
|
|
28 |
|
29 |
@tool
|
30 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
23 |
def toss_a_die(k: int) -> int:
|
24 |
"""A tool to toss a k-sided die / dice and return the value showing on that die / dice.
|
25 |
Args:
|
26 |
+
k: An integer specifying the number of sides on the die. If not specified, a good default would be to assume k=6 sides.
|
27 |
+
"""
|
28 |
+
value = 3
|
29 |
+
return f"The random roll of a dice gives a value of {value}"
|
30 |
|
31 |
@tool
|
32 |
def get_current_time_in_timezone(timezone: str) -> str:
|