Skip to content

Commit 947057d

Browse files
Abbas-Asadvcshih
authored andcommitted
Fix: Clarify random_number function docstring for inclusive range (openai#1461)
1 parent 0e47675 commit 947057d

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)