Instance Propertymacpaw.openai 0.3.2OpenAI
uniqueItems
ChatQuery.swift:1041let uniqueItems: Bool?
let uniqueItems: Bool?
s6OpenAI9ChatQueryV0C19CompletionToolParamV18FunctionDefinitionV0H10ParametersV8PropertyV11uniqueItemsSbSgvp
What are these?3XYV
import OpenAI
struct Property
struct ChatQuery
Creates a model response for the given chat conversation https://platform.openai.com/docs/guides/text-generation
struct ChatCompletionToolParam
struct FunctionDefinition
struct FunctionParameters
See the guide for examples, and the JSON Schema reference for documentation about the format.
@frozen struct Bool
A value type whose instances are either true
or false
.
init(from decoder: any Decoder) throws
init(type: Self.JSONType, description: String? = nil, format: String? = nil, items: Self.Items? = nil, required: [String]? = nil, pattern: String? = nil, const: String? = nil, enum: [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 `enum`: [String]?
let format: String?
let items: Self.Items?
let maxItems: Int?
let maximum: Double?
let minItems: Int?
let minimum: Double?
let multipleOf: Int?
let pattern: String?
let required: [String]?
let type: Self.JSONType
struct Items
typealias JSONType = ChatQuery.ChatCompletionToolParam.FunctionDefinition.FunctionParameters.JSONType