Structuremacpaw.openai 0.3.2OpenAI
JSONSchema
See the guide for examples, and the JSON Schema reference for documentation about the format.
struct JSONSchema
See the guide for examples, and the JSON Schema reference for documentation about the format.
struct JSONSchema
import OpenAI
protocol Decodable
A type that can decode itself from an external representation.
protocol Encodable
A type that can encode itself to an external representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
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 pattern: String?
let properties: [String : Property]?
let required: [String]?
let type: JSONType
struct Items
enum JSONType
struct Property
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.