Instance Propertymacpaw.openai 0.3.2OpenAI
const
ChatQuery.swift:997let const: String?
let const: String?
s6OpenAI9ChatQueryV0C19CompletionToolParamV18FunctionDefinitionV0H10ParametersV5constSSSgvp
What are these?9ASGN
import OpenAI
struct FunctionParameters
See the guide for examples, and the JSON Schema reference for documentation about the format.
struct ChatQuery
Creates a model response for the given chat conversation https://platform.openai.com/docs/guides/text-generation
struct ChatCompletionToolParam
struct FunctionDefinition
@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, required: [String]? = nil, pattern: String? = nil, const: String? = nil, enum: [String]? = nil, multipleOf: Int? = nil, minimum: Int? = nil, maximum: Int? = nil)
let `enum`: [String]?
let maximum: Int?
let minimum: Int?
let multipleOf: Int?
let pattern: String?
let properties: [String : Property]?
let required: [String]?
let type: Self.JSONType
enum JSONType
struct Property