Skip to content

Commit a81da67

Browse files
Update src/agents/tool.py
Co-authored-by: Adrian Cole <64215+codefromthecrypt@users.noreply.github.com>
1 parent b7e7fde commit a81da67

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)