Instance Propertymacpaw.openai 0.3.3OpenAI
properties
ChatQuery.swift:1096let properties: [String : Property]?
let properties: [String : Property]?
s6OpenAI9ChatQueryV0C19CompletionToolParamV18FunctionDefinitionV0H10ParametersV8PropertyV5ItemsV10propertiesSDySSAKGSgvp
What are these?5RP5B
import OpenAI
struct Items
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.
struct Property
@frozen struct String
A Unicode string value that is a collection of characters.
init(from decoder: any Decoder) throws
init(type: Self.JSONType, properties: [String : Property]? = 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 `enum`: [String]?
let maxItems: Int?
let maximum: Double?
let minItems: Int?
let minimum: Double?
let multipleOf: Int?
let pattern: String?
let type: Self.JSONType
let uniqueItems: Bool?
typealias JSONType = ChatQuery.ChatCompletionToolParam.FunctionDefinition.FunctionParameters.JSONType