Instance Propertymacpaw.openai 0.3.2OpenAI
pattern
ChatQuery.swift:1163let pattern: String?
let pattern: String?
import OpenAI
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, required: [String]? = nil, pattern: String? = nil, const: String? = nil, enumValues: [String]? = nil, multipleOf: Int? = nil, minimum: Int? = nil, maximum: Int? = nil)
let const: String?
let enumValues: [String]?
let maximum: Int?
let minimum: Int?
let multipleOf: Int?
let properties: [String : Property]?
let required: [String]?
let type: JSONType
struct Items
enum JSONType
struct Property