Skip to content

Commit 7715cb0

Browse files
Update src/agents/tool.py
Co-authored-by: Adrian Cole <[email protected]>
1 parent ef74c7b commit 7715cb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/agents/tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def function_tool(
189189
failure_error_function: If provided, use this function to generate an error message when
190190
the tool call fails. The error message is sent to the LLM. If you pass None, then no
191191
error message will be sent and instead an Exception will be raised.
192-
strict_mode: If False, allows optional parameters in the function schema.
192+
strict_mode: If False, parameters with default values become optional in the function schema.
193193
"""
194194

195195
def _create_function_tool(the_func: ToolFunction[...]) -> FunctionTool:

0 commit comments

Comments
 (0)