Instance Propertymacpaw.openai 0.3.2OpenAI
type
ChatQuery.swift:1177let type: JSONType
let type: JSONType
import OpenAI
struct Property
struct JSONSchema
See the guide for examples, and the JSON Schema reference for documentation about the format.
enum JSONType
init(from decoder: any Decoder) throws
init(type: JSONType, description: String? = nil, format: String? = nil, items: Items? = nil, required: [String]? = 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 description: String?
let enumValues: [String]?
let format: String?
let items: Items?
let maxItems: Int?
let maximum: Double?
let minItems: Int?
let minimum: Double?
let multipleOf: Int?
let pattern: String?
let required: [String]?
let uniqueItems: Bool?