get_openai_tool_schema()
in future versions. It parses the
function’s parameters and docstring to construct a JSON schema-like
dictionary.
Parameters:
None
)False
)synthesize_schema
is enabled and no valid schema is provided. (default: :obj:None
)False
)None
)None
)ToolAssistantToolsFunction
.
This function checks if the provided :obj:openai_tool_schema
adheres
to the specifications required by OpenAI’s
:obj:ToolAssistantToolsFunction
. It ensures that the function
description and parameters are correctly formatted according to JSON
Schema specifications.
Parameters:
max_retries
times in case of failure.
Parameters:
None
)None
)None
)parameters
. It will
firstly check if the input parameters schema is valid. If invalid,
the method will raise :obj:jsonschema.exceptions.SchemaError
.
Parameters: