david-clifford commited on
Commit
e71ad37
·
verified ·
1 Parent(s): ff11df7

Update dice tool

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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=6: the number of sides on the die, defaulting to 6 sides when otherwise unspecified"""
27
- return 3
 
 
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: