Update src/agents/tool.py
Co-authored-by: Adrian Cole <64215+codefromthecrypt@users.noreply.github.com>
This commit is contained in:
parent
b7e7fdee55
commit
a81da6788d
1 changed files with 1 additions and 1 deletions
|
|
@ -189,7 +189,7 @@ def function_tool(
|
||||||
failure_error_function: If provided, use this function to generate an error message when
|
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
|
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.
|
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:
|
def _create_function_tool(the_func: ToolFunction[...]) -> FunctionTool:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue