Skip to main content

functions.argument

The argument object is used to define the input data that will be passed to the function.

Parameters

NameTypeDescription
typeRequiredstringThe type of argument the AI is passing to the function.
Possible Values: "string", "object".
propertiesRequiredobjectAn object that defines the properties of the argument.

properties

The properties object is used to define the properties of the argument. A user-defined key is used to define the property, and the value is an object that defines the type and description of the argument.

Parameters

NameTypeDescription
[key: string]RequiredobjectThe user-defined key for the property.
[key: string].typeRequiredstringThe type of the property.
Possible Values: "string", "object".
[key: string].descriptionRequiredstringA description of the property.