Instance Propertymacpaw.openai 0.3.2OpenAI
parameters
The parameters the functions accepts, described as a JSON Schema object.
let parameters: JSONSchema?
The parameters the functions accepts, described as a JSON Schema object.
let parameters: JSONSchema?
s6OpenAI19FunctionDeclarationV10parametersAA10JSONSchemaVSgvp
What are these?3LB1P
import OpenAI
struct FunctionDeclaration
struct JSONSchema
See the guide for examples, and the JSON Schema reference for documentation about the format.
init(from decoder: any Decoder) throws
init(name: String, description: String?, parameters: JSONSchema?)
let description: String?
The description of what the function does.
let name: String
The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.