Skip to content

Commit cec3a9a

Browse files
authored
Fix: Clarify random_number function docstring for inclusive range (#1475)
1 parent a17625e commit cec3a9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/basic/lifecycle_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ async def on_handoff(
5656

5757
@function_tool
5858
def random_number(max: int) -> int:
59-
"""Generate a random number up to the provided max."""
59+
"""Generate a random number from 0 to max (inclusive)."""
6060
return random.randint(0, max)
6161

6262

0 commit comments

Comments
 (0)