Instance Propertymacpaw.openai 0.3.2OpenAI
enumValues
ChatQuery.swift:1232let enumValues: [String]?
let enumValues: [String]?
import OpenAI
struct Items
struct JSONSchema
See the guide for examples, and the JSON Schema reference for documentation about the format.
@frozen struct String
A Unicode string value that is a collection of characters.
init(from decoder: any Decoder) throws
init(type: JSONType, properties: [String : Property]? = nil, pattern: String? = nil, const: String? = nil, enumValues: [String]? = nil, multipleOf: Int? = nil, minimum: Double? = nil, maximum: Double? = nil, minItems: Int? = nil, maxItems: Int? = nil, uniqueItems: Bool? = nil)
let const: String?
let maxItems: Int?
let maximum: Double?
let minItems: Int?
let minimum: Double?
let multipleOf: Int?
let pattern: String?
let properties: [String : Property]?
let type: JSONType
let uniqueItems: Bool?