Instance Propertymacpaw.openai 0.3.2OpenAI
minItems
ChatQuery.swift:1236let minItems: Int?
let minItems: Int?
import OpenAI
struct Items
struct JSONSchema
See the guide for examples, and the JSON Schema reference for documentation about the format.
@frozen struct Int
A signed integer value type.
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 enumValues: [String]?
let maxItems: Int?
let maximum: Double?
let minimum: Double?
let multipleOf: Int?
let pattern: String?
let properties: [String : Property]?
let type: JSONType
let uniqueItems: Bool?