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

Update unclear how to be strict with default values

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -20,10 +20,10 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
20
 
21
  # Writing my first custom tool
22
  @tool
23
- def toss_a_die(k=6: 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"""
27
  return 3
28
 
29
  @tool
 
20
 
21
  # Writing my first custom tool
22
  @tool
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