Instance Propertymacpaw.openai 0.3.2OpenAI
description
The description of what the function does.
let description: String?
The description of what the function does.
let description: String?
import OpenAI
struct FunctionDeclaration
@frozen struct String
A Unicode string value that is a collection of characters.
init(from decoder: any Decoder) throws
init(name: String, description: String?, parameters: JSONSchema?)
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.
let parameters: JSONSchema?
The parameters the functions accepts, described as a JSON Schema object.