Skip to content

Commit a81da67

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/agents/tool.py

+1-1
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)