parameters
The parameters object is used to define the input data that will be passed to the function.
Properties
functions[].parameters
An object that accepts the following properties.
parameters.type
Defines the top-level type of the parameters. Must be set to "object"
parameters.properties
An object containing the properties definitions to be passed to the function
properties.{property_name}
The properties object defines the input data that will be passed to the function. It supports different types of parameters, each with their own set of configuration options. The property name is a key in the properties object that is user-defined. An object with dynamic property names, where:
- Keys: User-defined strings, that set the property name.
- Values: Must be one of the valid schema types. Learn more about valid schema types from the JSON Schema documentation
Schema Types
Each property in the properties object must use one of the following schema types:
string
integer
number
boolean
array
object
oneOf
allOf
anyOf
const
{property_name}.type
The type of property the AI is passing to the function. Must be set to "string"
{property_name}.description
A description of the property
{property_name}.enum
An array of strings that are the possible values
{property_name}.default
The default string value
{property_name}.pattern
Regular expression pattern for the string value to match
{property_name}.nullable
Whether the property can be null
parameters.required
Array of required property names from the properties object