Update src/agents/tool.py

Co-authored-by: Adrian Cole <64215+codefromthecrypt@users.noreply.github.com>
This commit is contained in:
Jaimin Godhani 2025-03-12 14:56:19 +05:30 committed by GitHub
parent b7e7fdee55
commit a81da6788d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -189,7 +189,7 @@ def function_tool(
failure_error_function: If provided, use this function to generate an error message when
the tool call fails. The error message is sent to the LLM. If you pass None, then no
error message will be sent and instead an Exception will be raised.
strict_mode: If False, allows optional parameters in the function schema.
strict_mode: If False, parameters with default values become optional in the function schema.
"""
def _create_function_tool(the_func: ToolFunction[...]) -> FunctionTool: