Skip to content

Commit e4699c3

Browse files
authored
Fix: Clarify random_number function docstring for inclusive range (#1461)
1 parent 4c436b7 commit e4699c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/basic/agent_lifecycle_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ async def on_tool_end(
4949
@function_tool
5050
def random_number(max: int) -> int:
5151
"""
52-
Generate a random number up to the provided maximum.
52+
Generate a random number from 0 to max (inclusive).
5353
"""
5454
return random.randint(0, max)
5555

0 commit comments

Comments
 (0)