| Associated Type | Output | associatedtype Output : Decodable, Sendable | Sources/SwiftAISDK/CoreObjectSchema.swift |
| Case | AIObjectGenerationFailureKind.decoding | case decoding | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Case | AIObjectGenerationFailureKind.noJSON | case noJSON | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Case | AIObjectGenerationFailureKind.repairFailed | case repairFailed | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Case | AIObjectGenerationFailureKind.schemaValidation | case schemaValidation | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Case | AIObjectGenerationSessionStatus.error | case error | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Case | AIObjectGenerationSessionStatus.ready | case ready | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Case | AIObjectGenerationSessionStatus.streaming | case streaming | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Case | AIObjectGenerationSessionStatus.submitted | case submitted | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Case | AIObjectOutputStrategy.array | case array | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Case | AIObjectOutputStrategy.enumeration | case enumeration | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Case | AIObjectOutputStrategy.json | case json | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Case | AIObjectOutputStrategy.object | case object | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Case | AIOutputKind.array | case array | Sources/SwiftAISDK/Output.swift |
| Case | AIOutputKind.choice | case choice | Sources/SwiftAISDK/Output.swift |
| Case | AIOutputKind.json | case json | Sources/SwiftAISDK/Output.swift |
| Case | AIOutputKind.object | case object | Sources/SwiftAISDK/Output.swift |
| Case | AIOutputKind.text | case text | Sources/SwiftAISDK/Output.swift |
| Case | AIOutputStreamPart.finish(reason:usage:) | case finish(reason: String?, usage: TokenUsage?) | Sources/SwiftAISDK/Output.swift |
| Case | AIOutputStreamPart.metadata(_:) | case metadata([String : JSONValue]) | Sources/SwiftAISDK/Output.swift |
| Case | AIOutputStreamPart.output(_:) | case output(AIOutputGenerationResult<Output>) | Sources/SwiftAISDK/Output.swift |
| Case | AIOutputStreamPart.partialOutput(_:) | case partialOutput(Partial) | Sources/SwiftAISDK/Output.swift |
| Case | AIOutputStreamPart.raw(_:) | case raw(LanguageStreamPart) | Sources/SwiftAISDK/Output.swift |
| Case | AIOutputStreamPart.responseMetadata(_:) | case responseMetadata(AIResponseMetadata) | Sources/SwiftAISDK/Output.swift |
| Case | AIOutputStreamPart.source(_:) | case source(AISource) | Sources/SwiftAISDK/Output.swift |
| Case | AIOutputStreamPart.textDelta(_:) | case textDelta(String) | Sources/SwiftAISDK/Output.swift |
| Case | AIOutputStreamPart.warning(_:) | case warning(AIWarning) | Sources/SwiftAISDK/Output.swift |
| Case | AIParsePartialJSONState.failedParse | case failedParse | Sources/SwiftAISDK/AIObjectPartialJSON.swift |
| Case | AIParsePartialJSONState.repairedParse | case repairedParse | Sources/SwiftAISDK/AIObjectPartialJSON.swift |
| Case | AIParsePartialJSONState.successfulParse | case successfulParse | Sources/SwiftAISDK/AIObjectPartialJSON.swift |
| Case | AIParsePartialJSONState.undefinedInput | case undefinedInput | Sources/SwiftAISDK/AIObjectPartialJSON.swift |
| Case | AIResultContentPart.custom(_:providerMetadata:) | case custom(JSONValue, providerMetadata: [String : JSONValue] = [:]) | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Case | AIResultContentPart.file(_:) | case file(AIStreamFile) | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Case | AIResultContentPart.reasoning(_:providerMetadata:) | case reasoning(String, providerMetadata: [String : JSONValue] = [:]) | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Case | AIResultContentPart.reasoningFile(_:) | case reasoningFile(AIStreamFile) | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Case | AIResultContentPart.source(_:) | case source(AISource) | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Case | AIResultContentPart.text(_:providerMetadata:) | case text(String, providerMetadata: [String : JSONValue] = [:]) | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Case | AIResultContentPart.toolApprovalRequest(_:) | case toolApprovalRequest(AIToolApprovalRequest) | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Case | AIResultContentPart.toolApprovalResponse(_:) | case toolApprovalResponse(AIToolApprovalResponse) | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Case | AIResultContentPart.toolCall(_:) | case toolCall(AIToolCall) | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Case | AIResultContentPart.toolResult(_:) | case toolResult(AIToolResult) | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Case | ObjectStreamPart.finish(reason:usage:) | case finish(reason: String?, usage: TokenUsage?) | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Case | ObjectStreamPart.metadata(_:) | case metadata([String : JSONValue]) | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Case | ObjectStreamPart.object(_:) | case object(ObjectGenerationResult<Object>) | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Case | ObjectStreamPart.partial(_:) | case partial(Object) | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Case | ObjectStreamPart.partialObject(_:) | case partialObject(JSONValue) | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Case | ObjectStreamPart.raw(_:) | case raw(LanguageStreamPart) | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Case | ObjectStreamPart.responseMetadata(_:) | case responseMetadata(AIResponseMetadata) | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Case | ObjectStreamPart.source(_:) | case source(AISource) | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Case | ObjectStreamPart.textDelta(_:) | case textDelta(String) | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Case | ObjectStreamPart.warning(_:) | case warning(AIWarning) | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Class | AIObjectGenerationSession | @MainActor final class AIObjectGenerationSession<Output, Partial> where Output : Sendable, Partial : Sendable | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Enumeration | AIObjectGenerationFailureKind | enum AIObjectGenerationFailureKind | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Enumeration | AIObjectGenerationSessionStatus | enum AIObjectGenerationSessionStatus | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Enumeration | AIObjectOutputStrategy | enum AIObjectOutputStrategy | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Enumeration | AIOutputKind | enum AIOutputKind | Sources/SwiftAISDK/Output.swift |
| Enumeration | AIOutputStreamPart | enum AIOutputStreamPart<Output, Partial> where Output : Sendable, Partial : Sendable | Sources/SwiftAISDK/Output.swift |
| Enumeration | AIParsePartialJSONState | enum AIParsePartialJSONState | Sources/SwiftAISDK/AIObjectPartialJSON.swift |
| Enumeration | AIResultContentPart | enum AIResultContentPart | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Enumeration | ObjectStreamPart | enum ObjectStreamPart<Object> where Object : Sendable | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Enumeration | Output | enum Output | Sources/SwiftAISDK/Output.swift |
| Function | fixJson(_:) | func fixJson(_ input: String) -> String | Sources/SwiftAISDK/AIObjectPartialJSON.swift |
| Function | parsePartialJSON(_:) | func parsePartialJSON(_ jsonText: String?) -> AIParsePartialJSONResult | Sources/SwiftAISDK/AIObjectPartialJSON.swift |
| Initializer | init(_:name:description:as:) | init(_ jsonSchema: JSONValue, name: String? = nil, description: String? = nil, as type: Output.Type = Output.self) | Sources/SwiftAISDK/CoreObjectSchema.swift |
| Initializer | init(callID:object:text:rawObject:reasoning:finishReason:usage:warnings:providerMetadata:responseMetadata:) | init(callID: String, object: Output, text: String, rawObject: JSONValue, reasoning: String, finishReason: String?, usage: TokenUsage?, warnings: [AIWarning], providerMetadata: [String : JSONValue], responseMetadata: AIResponseMetadata) | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Initializer | init(callID:operationID:providerID:modelID:outputKind:request:schema:schemaName:schemaDescription:maxRetries:) | init(callID: String, operationID: String, providerID: String, modelID: String?, outputKind: String, request: LanguageModelRequest, schema: JSONValue?, schemaName: String?, schemaDescription: String?, maxRetries: Int) | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Initializer | init(callID:providerID:modelID:text:errorDescription:finishReason:usage:warnings:providerMetadata:responseMetadata:) | init(callID: String, providerID: String, modelID: String?, text: String, errorDescription: String, finishReason: String?, usage: TokenUsage?, warnings: [AIWarning], providerMetadata: [String : JSONValue], responseMetadata: AIResponseMetadata) | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Initializer | init(callID:stepNumber:providerID:modelID:request:) | init(callID: String, stepNumber: Int, providerID: String, modelID: String?, request: LanguageModelRequest) | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Initializer | init(callID:stepNumber:providerID:modelID:text:reasoning:finishReason:usage:warnings:providerMetadata:responseMetadata:) | init(callID: String, stepNumber: Int, providerID: String, modelID: String?, text: String, reasoning: String, finishReason: String?, usage: TokenUsage?, warnings: [AIWarning], providerMetadata: [String : JSONValue], responseMetadata: AIResponseMetadata) | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Initializer | init(isEnabled:schemaPrefix:schemaSuffix:) | init(isEnabled: Bool = true, schemaPrefix: String? = nil, schemaSuffix: String? = nil) | Sources/SwiftAISDK/CoreObjectSchema.swift |
| Initializer | init(model:output:initialPartialObject:initialObject:onError:onFinish:) | @MainActor init(model: any LanguageModel, output: AIOutput<Output, Partial>, initialPartialObject: Partial? = nil, initialObject: Output? = nil, onError: (@MainActor @Sendable (any Error) -> Void)? = nil, onFinish: (@MainActor @Sendable (AIObjectGenerationSessionFinishEvent<Output>) -> Void)? = nil) | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Initializer | init(object:result:error:) | init(object: Output?, result: AIOutputGenerationResult<Output>?, error: (any Error)? = nil) | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Initializer | init(object:text:rawObject:reasoning:finishReason:usage:warnings:providerMetadata:responseMetadata:textResult:) | init(object: Object, text: String, rawObject: JSONValue, reasoning: String = "", finishReason: String? = nil, usage: TokenUsage? = nil, warnings: [AIWarning] = [], providerMetadata: [String : JSONValue] = [:], responseMetadata: AIResponseMetadata = AIResponseMetadata(), textResult: TextGenerationResult) | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Initializer | init(objectResult:) | init(objectResult: ObjectGenerationResult<Output>) | Sources/SwiftAISDK/Output.swift |
| Initializer | init(onStart:onStepStart:onStepFinish:onFinish:onError:) | init(onStart: (@Sendable (AIObjectGenerationStartEvent) async -> Void)? = nil, onStepStart: (@Sendable (AIObjectGenerationStepStartEvent) async -> Void)? = nil, onStepFinish: (@Sendable (AIObjectGenerationStepFinishEvent) async -> Void)? = nil, onFinish: (@Sendable (AIObjectGenerationFinishEvent<Output>) async -> Void)? = nil, onError: (@Sendable (AIObjectGenerationErrorEvent) async -> Void)? = nil) | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Initializer | init(output:text:rawOutput:reasoning:finishReason:usage:warnings:providerMetadata:responseMetadata:textResult:) | init(output: Output, text: String, rawOutput: JSONValue, reasoning: String = "", finishReason: String? = nil, usage: TokenUsage? = nil, warnings: [AIWarning] = [], providerMetadata: [String : JSONValue] = [:], responseMetadata: AIResponseMetadata = AIResponseMetadata(), textResult: TextGenerationResult) | Sources/SwiftAISDK/Output.swift |
| Initializer | init(provider:strategy:kind:message:path:text:repairAttempted:finishReason:usage:warnings:providerMetadata:responseMetadata:) | init(provider: String, strategy: AIObjectOutputStrategy, kind: AIObjectGenerationFailureKind, message: String, path: String? = nil, text: String, repairAttempted: Bool = false, finishReason: String? = nil, usage: TokenUsage? = nil, warnings: [AIWarning] = [], providerMetadata: [String : JSONValue] = [:], responseMetadata: AIResponseMetadata = AIResponseMetadata()) | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Initializer | init(temperature:topP:topK:presencePenalty:frequencyPenalty:seed:maxOutputTokens:stopSequences:reasoning:providerOptions:extraBody:headers:timeoutNanoseconds:retryPolicy:telemetry:jsonInstruction:repairText:) | init(temperature: Double? = nil, topP: Double? = nil, topK: Int? = nil, presencePenalty: Double? = nil, frequencyPenalty: Double? = nil, seed: Int? = nil, maxOutputTokens: Int? = nil, stopSequences: [String] = [], reasoning: String? = nil, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], timeoutNanoseconds: UInt64? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Initializer | init(text:content:reasoning:finishReason:usage:files:toolCalls:toolResults:toolApprovalRequests:toolApprovalResponses:steps:sources:responseMessages:providerMetadata:rawValue:warnings:requestMetadata:responseMetadata:) | init(text: String, content: [AIResultContentPart] = [], reasoning: String = "", finishReason: String? = nil, usage: TokenUsage? = nil, files: [AIStreamFile] = [], toolCalls: [AIToolCall] = [], toolResults: [AIToolResult] = [], toolApprovalRequests: [AIToolApprovalRequest] = [], toolApprovalResponses: [AIToolApprovalResponse] = [], steps: [AIToolStep] = [], sources: [AISource] = [], responseMessages: [AIMessage] = [], providerMetadata: [String : JSONValue] = [:], rawValue: JSONValue, warnings: [AIWarning] = [], requestMetadata: AIRequestMetadata = AIRequestMetadata(), responseMetadata: AIResponseMetadata = AIResponseMetadata()) | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Initializer | init(text:errorMessage:) | init(text: String, errorMessage: String) | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Initializer | init(textResult:) | init(textResult: TextGenerationResult) | Sources/SwiftAISDK/Output.swift |
| Initializer | init(value:state:) | init(value: JSONValue?, state: AIParsePartialJSONState) | Sources/SwiftAISDK/AIObjectPartialJSON.swift |
| Instance Method | clear() | @MainActor func clear() | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Method | clearError() | @MainActor func clearError() | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Method | languageModelRequest(messages:abortSignal:) | func languageModelRequest(messages: [AIMessage], abortSignal: AIAbortSignal? = nil) -> LanguageModelRequest | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Method | stop(reason:) | @MainActor func stop(reason: String? = "stopped") | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Method | submit(_:options:) | @discardableResult @MainActor func submit(_ prompt: String, options: AIObjectGenerationSessionRequestOptions = AIObjectGenerationSessionRequestOptions()) -> Task<Void, Never> | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Method | submit(messages:options:) | @discardableResult @MainActor func submit(messages: [AIMessage], options: AIObjectGenerationSessionRequestOptions = AIObjectGenerationSessionRequestOptions()) -> Task<Void, Never> | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Method | submit(request:timeoutNanoseconds:retryPolicy:telemetry:jsonInstruction:repairText:) | @discardableResult @MainActor func submit(request: LanguageModelRequest, timeoutNanoseconds: UInt64? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) -> Task<Void, Never> | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | callID | var callID: String | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | callID | var callID: String | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | callID | var callID: String | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | callID | var callID: String | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | callID | var callID: String | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | content | var content: [AIResultContentPart] | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | description | var description: String? { get } | Sources/SwiftAISDK/CoreObjectSchema.swift |
| Instance Property | description | var description: String? { get } | Sources/SwiftAISDK/CoreObjectSchema.swift |
| Instance Property | description | var description: String? | Sources/SwiftAISDK/CoreObjectSchema.swift |
| Instance Property | description | var description: String { get } | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | description | var description: String? | Sources/SwiftAISDK/Output.swift |
| Instance Property | error | var error: (any Error)? | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | error | @Published @MainActor var error: (any Error)? { get set } | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | errorDescription | var errorDescription: String | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | errorMessage | var errorMessage: String | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | extraBody | var extraBody: [String : JSONValue] | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | files | var files: [AIStreamFile] | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | finalStep | var finalStep: AIToolStep? { get } | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | finishReason | @Published @MainActor var finishReason: String? { get set } | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | finishReason | var finishReason: String? | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | finishReason | var finishReason: String? | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | finishReason | var finishReason: String? | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | finishReason | var finishReason: String? | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | finishReason | var finishReason: String? | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | finishReason | var finishReason: String? | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | finishReason | var finishReason: String? | Sources/SwiftAISDK/Output.swift |
| Instance Property | frequencyPenalty | var frequencyPenalty: Double? | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | headers | var headers: [String : String] | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | isEnabled | var isEnabled: Bool | Sources/SwiftAISDK/CoreObjectSchema.swift |
| Instance Property | isLoading | @MainActor var isLoading: Bool { get } | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | jsonInstruction | var jsonInstruction: AIJSONInstruction? | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | jsonSchema | var jsonSchema: JSONValue { get } | Sources/SwiftAISDK/CoreObjectSchema.swift |
| Instance Property | jsonSchema | var jsonSchema: JSONValue | Sources/SwiftAISDK/CoreObjectSchema.swift |
| Instance Property | kind | var kind: AIObjectGenerationFailureKind | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | kind | var kind: AIOutputKind | Sources/SwiftAISDK/Output.swift |
| Instance Property | maxOutputTokens | var maxOutputTokens: Int? | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | maxRetries | var maxRetries: Int | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | message | var message: String | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | metadata | @Published @MainActor var metadata: [String : JSONValue] { get set } | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | model | @MainActor var model: any LanguageModel | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | modelID | var modelID: String? | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | modelID | var modelID: String? | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | modelID | var modelID: String? | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | modelID | var modelID: String? | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | name | var name: String? { get } | Sources/SwiftAISDK/CoreObjectSchema.swift |
| Instance Property | name | var name: String? { get } | Sources/SwiftAISDK/CoreObjectSchema.swift |
| Instance Property | name | var name: String? | Sources/SwiftAISDK/CoreObjectSchema.swift |
| Instance Property | name | var name: String? | Sources/SwiftAISDK/Output.swift |
| Instance Property | object | var object: Output? | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | object | @Published @MainActor var object: Output? { get set } | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | object | var object: Object | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | object | var object: Output | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | onError | @MainActor var onError: (@MainActor @Sendable (any Error) -> Void)? | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | onError | var onError: (@Sendable (AIObjectGenerationErrorEvent) async -> Void)? | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | onFinish | @MainActor var onFinish: (@MainActor @Sendable (AIObjectGenerationSessionFinishEvent<Output>) -> Void)? | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | onFinish | var onFinish: (@Sendable (AIObjectGenerationFinishEvent<Output>) async -> Void)? | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | onStart | var onStart: (@Sendable (AIObjectGenerationStartEvent) async -> Void)? | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | onStepFinish | var onStepFinish: (@Sendable (AIObjectGenerationStepFinishEvent) async -> Void)? | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | onStepStart | var onStepStart: (@Sendable (AIObjectGenerationStepStartEvent) async -> Void)? | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | operationID | var operationID: String | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | output | @MainActor var output: AIOutput<Output, Partial> | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | output | var output: Output | Sources/SwiftAISDK/Output.swift |
| Instance Property | outputKind | var outputKind: String | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | partialObject | @Published @MainActor var partialObject: Partial? { get set } | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | path | var path: String? | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | presencePenalty | var presencePenalty: Double? | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | provider | var provider: String | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | providerID | var providerID: String | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | providerID | var providerID: String | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | providerID | var providerID: String | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | providerID | var providerID: String | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | providerMetadata | var providerMetadata: [String : JSONValue] | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | providerMetadata | var providerMetadata: [String : JSONValue] | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | providerMetadata | var providerMetadata: [String : JSONValue] | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | providerMetadata | var providerMetadata: [String : JSONValue] | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | providerMetadata | var providerMetadata: [String : JSONValue] | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | providerMetadata | var providerMetadata: [String : JSONValue] | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | providerMetadata | var providerMetadata: [String : JSONValue] | Sources/SwiftAISDK/Output.swift |
| Instance Property | providerOptions | var providerOptions: [String : JSONValue] | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | rawObject | var rawObject: JSONValue | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | rawObject | var rawObject: JSONValue | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | rawOutput | var rawOutput: JSONValue | Sources/SwiftAISDK/Output.swift |
| Instance Property | rawValue | var rawValue: JSONValue | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | reasoning | var reasoning: String? | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | reasoning | var reasoning: String | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | reasoning | var reasoning: String | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | reasoning | var reasoning: String | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | reasoning | var reasoning: String | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | reasoning | var reasoning: String | Sources/SwiftAISDK/Output.swift |
| Instance Property | reasoningText | var reasoningText: String { get } | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | repairAttempted | var repairAttempted: Bool | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | repairText | var repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | request | var request: LanguageModelRequest | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | request | var request: LanguageModelRequest | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | requestMetadata | var requestMetadata: AIRequestMetadata | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | responseMessages | var responseMessages: [AIMessage] | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | responseMetadata | @Published @MainActor var responseMetadata: AIResponseMetadata? { get set } | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | responseMetadata | var responseMetadata: AIResponseMetadata | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | responseMetadata | var responseMetadata: AIResponseMetadata | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | responseMetadata | var responseMetadata: AIResponseMetadata | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | responseMetadata | var responseMetadata: AIResponseMetadata | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | responseMetadata | var responseMetadata: AIResponseMetadata | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | responseMetadata | var responseMetadata: AIResponseMetadata | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | responseMetadata | var responseMetadata: AIResponseMetadata | Sources/SwiftAISDK/Output.swift |
| Instance Property | result | var result: AIOutputGenerationResult<Output>? | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | result | @Published @MainActor var result: AIOutputGenerationResult<Output>? { get set } | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | retryPolicy | var retryPolicy: AIRetryPolicy | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | schema | var schema: JSONValue? | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | schema | var schema: JSONValue? | Sources/SwiftAISDK/Output.swift |
| Instance Property | schemaDescription | var schemaDescription: String? | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | schemaName | var schemaName: String? | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | schemaPrefix | var schemaPrefix: String? | Sources/SwiftAISDK/CoreObjectSchema.swift |
| Instance Property | schemaSuffix | var schemaSuffix: String? | Sources/SwiftAISDK/CoreObjectSchema.swift |
| Instance Property | seed | var seed: Int? | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | sources | @Published @MainActor var sources: [AISource] { get set } | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | sources | var sources: [AISource] | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | state | var state: AIParsePartialJSONState | Sources/SwiftAISDK/AIObjectPartialJSON.swift |
| Instance Property | status | @Published @MainActor var status: AIObjectGenerationSessionStatus { get set } | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | stepNumber | var stepNumber: Int | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | stepNumber | var stepNumber: Int | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | steps | var steps: [AIToolStep] | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | stopSequences | var stopSequences: [String] | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | strategy | var strategy: AIObjectOutputStrategy | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | telemetry | var telemetry: Telemetry.Options? | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | temperature | var temperature: Double? | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | text | @Published @MainActor var text: String { get set } | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | text | var text: String | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | text | var text: String | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | text | var text: String | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | text | var text: String | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | text | var text: String | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | text | var text: String | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | text | var text: String | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | text | var text: String | Sources/SwiftAISDK/Output.swift |
| Instance Property | textResult | var textResult: TextGenerationResult | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | textResult | var textResult: TextGenerationResult | Sources/SwiftAISDK/Output.swift |
| Instance Property | timeoutNanoseconds | var timeoutNanoseconds: UInt64? | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | toolApprovalRequests | var toolApprovalRequests: [AIToolApprovalRequest] | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | toolApprovalResponses | var toolApprovalResponses: [AIToolApprovalResponse] | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | toolCalls | var toolCalls: [AIToolCall] | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | toolResults | var toolResults: [AIToolResult] | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | topK | var topK: Int? | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | topP | var topP: Double? | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | usage | @Published @MainActor var usage: TokenUsage? { get set } | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | usage | var usage: TokenUsage? | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | usage | var usage: TokenUsage? | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | usage | var usage: TokenUsage? | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | usage | var usage: TokenUsage? | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | usage | var usage: TokenUsage? | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | usage | var usage: TokenUsage? | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | usage | var usage: TokenUsage? | Sources/SwiftAISDK/Output.swift |
| Instance Property | value | var value: JSONValue? | Sources/SwiftAISDK/AIObjectPartialJSON.swift |
| Instance Property | warnings | @Published @MainActor var warnings: [AIWarning] { get set } | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Instance Property | warnings | var warnings: [AIWarning] | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | warnings | var warnings: [AIWarning] | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | warnings | var warnings: [AIWarning] | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | warnings | var warnings: [AIWarning] | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | warnings | var warnings: [AIWarning] | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | warnings | var warnings: [AIWarning] | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Instance Property | warnings | var warnings: [AIWarning] | Sources/SwiftAISDK/Output.swift |
| Protocol | AIObjectSchema | protocol AIObjectSchema : Sendable | Sources/SwiftAISDK/CoreObjectSchema.swift |
| Structure | AIJSONInstruction | struct AIJSONInstruction | Sources/SwiftAISDK/CoreObjectSchema.swift |
| Structure | AIJSONSchema | struct AIJSONSchema<Output> where Output : Decodable, Output : Sendable | Sources/SwiftAISDK/CoreObjectSchema.swift |
| Structure | AIObjectGenerationCallbacks | struct AIObjectGenerationCallbacks<Output> where Output : Sendable | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Structure | AIObjectGenerationError | struct AIObjectGenerationError | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Structure | AIObjectGenerationErrorEvent | struct AIObjectGenerationErrorEvent | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Structure | AIObjectGenerationFinishEvent | struct AIObjectGenerationFinishEvent<Output> where Output : Sendable | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Structure | AIObjectGenerationSessionFinishEvent | struct AIObjectGenerationSessionFinishEvent<Output> where Output : Sendable | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Structure | AIObjectGenerationSessionRequestOptions | struct AIObjectGenerationSessionRequestOptions | Sources/SwiftAISDK/AIObjectGenerationSession.swift |
| Structure | AIObjectGenerationStartEvent | struct AIObjectGenerationStartEvent | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Structure | AIObjectGenerationStepFinishEvent | struct AIObjectGenerationStepFinishEvent | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Structure | AIObjectGenerationStepStartEvent | struct AIObjectGenerationStepStartEvent | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Structure | AIObjectRepairContext | struct AIObjectRepairContext | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Structure | AIOutput | struct AIOutput<FinalOutput, PartialOutput> where FinalOutput : Sendable, PartialOutput : Sendable | Sources/SwiftAISDK/Output.swift |
| Structure | AIOutputGenerationResult | struct AIOutputGenerationResult<Output> where Output : Sendable | Sources/SwiftAISDK/Output.swift |
| Structure | AIParsePartialJSONResult | struct AIParsePartialJSONResult | Sources/SwiftAISDK/AIObjectPartialJSON.swift |
| Structure | ObjectGenerationResult | struct ObjectGenerationResult<Object> where Object : Sendable | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Structure | TextGenerationResult | struct TextGenerationResult | Sources/SwiftAISDK/CoreTextObjectResults.swift |
| Type Method | array(element:minItems:maxItems:name:description:) | static func array<ElementSchema>(element: ElementSchema, minItems: Int? = nil, maxItems: Int? = nil, name: String? = nil, description: String? = nil) -> AIOutput<[ElementSchema.Output], [ElementSchema.Output]> where ElementSchema : AIObjectSchema | Sources/SwiftAISDK/Output.swift |
| Type Method | array(element:minItems:maxItems:name:description:as:) | static func array<Element>(element: JSONValue, minItems: Int? = nil, maxItems: Int? = nil, name: String? = nil, description: String? = nil, as type: Element.Type = Element.self) -> AIOutput<[Element], [Element]> where Element : Decodable, Element : Sendable | Sources/SwiftAISDK/Output.swift |
| Type Method | array(element:name:description:) | static func array<ElementSchema>(element: ElementSchema, name: String? = nil, description: String? = nil) -> AIOutput<[ElementSchema.Output], [ElementSchema.Output]> where ElementSchema : AIObjectSchema | Sources/SwiftAISDK/Output.swift |
| Type Method | array(element:name:description:as:) | static func array<Element>(element: JSONValue, name: String? = nil, description: String? = nil, as type: Element.Type = Element.self) -> AIOutput<[Element], [Element]> where Element : Decodable, Element : Sendable | Sources/SwiftAISDK/Output.swift |
| Type Method | choice(options:name:description:) | static func choice(options: [String], name: String? = nil, description: String? = nil) -> AIOutput<String, String> | Sources/SwiftAISDK/Output.swift |
| Type Method | generateEnum(model:prompt:values:temperature:topP:topK:presencePenalty:frequencyPenalty:seed:maxOutputTokens:stopSequences:reasoning:providerOptions:extraBody:headers:schemaName:schemaDescription:retryPolicy:telemetry:callbacks:jsonInstruction:repairText:) | static func generateEnum(model: any LanguageModel, prompt: String, values: [String], temperature: Double? = nil, topP: Double? = nil, topK: Int? = nil, presencePenalty: Double? = nil, frequencyPenalty: Double? = nil, seed: Int? = nil, maxOutputTokens: Int? = nil, stopSequences: [String] = [], reasoning: String? = nil, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], schemaName: String? = nil, schemaDescription: String? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, callbacks: AIObjectGenerationCallbacks<String>? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) async throws -> ObjectGenerationResult<String> | Sources/SwiftAISDK/AIFacadeGenerateObject.swift |
| Type Method | generateEnum(model:request:values:schemaName:schemaDescription:retryPolicy:telemetry:callbacks:jsonInstruction:repairText:) | static func generateEnum(model: any LanguageModel, request: LanguageModelRequest, values: [String], schemaName: String? = nil, schemaDescription: String? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, callbacks: AIObjectGenerationCallbacks<String>? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) async throws -> ObjectGenerationResult<String> | Sources/SwiftAISDK/AIFacadeGenerateObject.swift |
| Type Method | generateJSON(model:prompt:temperature:topP:topK:presencePenalty:frequencyPenalty:seed:maxOutputTokens:stopSequences:reasoning:providerOptions:extraBody:headers:schemaName:schemaDescription:retryPolicy:telemetry:callbacks:jsonInstruction:repairText:) | static func generateJSON(model: any LanguageModel, prompt: String, temperature: Double? = nil, topP: Double? = nil, topK: Int? = nil, presencePenalty: Double? = nil, frequencyPenalty: Double? = nil, seed: Int? = nil, maxOutputTokens: Int? = nil, stopSequences: [String] = [], reasoning: String? = nil, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], schemaName: String? = nil, schemaDescription: String? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, callbacks: AIObjectGenerationCallbacks<JSONValue>? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) async throws -> ObjectGenerationResult<JSONValue> | Sources/SwiftAISDK/AIFacadeGenerateObject.swift |
| Type Method | generateJSON(model:request:schemaName:schemaDescription:retryPolicy:telemetry:callbacks:jsonInstruction:repairText:) | static func generateJSON(model: any LanguageModel, request: LanguageModelRequest, schemaName: String? = nil, schemaDescription: String? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, callbacks: AIObjectGenerationCallbacks<JSONValue>? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) async throws -> ObjectGenerationResult<JSONValue> | Sources/SwiftAISDK/AIFacadeGenerateObject.swift |
| Type Method | generateObject(model:prompt:as:schema:schemaName:schemaDescription:temperature:topP:topK:presencePenalty:frequencyPenalty:seed:maxOutputTokens:stopSequences:reasoning:providerOptions:extraBody:headers:retryPolicy:telemetry:callbacks:jsonInstruction:repairText:) | static func generateObject<Object>(model: any LanguageModel, prompt: String, as type: Object.Type = Object.self, schema: JSONValue? = nil, schemaName: String? = nil, schemaDescription: String? = nil, temperature: Double? = nil, topP: Double? = nil, topK: Int? = nil, presencePenalty: Double? = nil, frequencyPenalty: Double? = nil, seed: Int? = nil, maxOutputTokens: Int? = nil, stopSequences: [String] = [], reasoning: String? = nil, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, callbacks: AIObjectGenerationCallbacks<Object>? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) async throws -> ObjectGenerationResult<Object> where Object : Decodable, Object : Sendable | Sources/SwiftAISDK/AIFacadeGenerateObject.swift |
| Type Method | generateObject(model:prompt:schema:schemaName:schemaDescription:temperature:topP:topK:presencePenalty:frequencyPenalty:seed:maxOutputTokens:stopSequences:reasoning:providerOptions:extraBody:headers:retryPolicy:telemetry:callbacks:jsonInstruction:repairText:) | static func generateObject<Schema>(model: any LanguageModel, prompt: String, schema: Schema, schemaName: String? = nil, schemaDescription: String? = nil, temperature: Double? = nil, topP: Double? = nil, topK: Int? = nil, presencePenalty: Double? = nil, frequencyPenalty: Double? = nil, seed: Int? = nil, maxOutputTokens: Int? = nil, stopSequences: [String] = [], reasoning: String? = nil, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, callbacks: AIObjectGenerationCallbacks<Schema.Output>? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) async throws -> ObjectGenerationResult<Schema.Output> where Schema : AIObjectSchema | Sources/SwiftAISDK/AIFacadeGenerateObject.swift |
| Type Method | generateObject(model:request:as:schema:schemaName:schemaDescription:retryPolicy:telemetry:callbacks:jsonInstruction:repairText:) | static func generateObject<Object>(model: any LanguageModel, request: LanguageModelRequest, as type: Object.Type = Object.self, schema: JSONValue? = nil, schemaName: String? = nil, schemaDescription: String? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, callbacks: AIObjectGenerationCallbacks<Object>? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) async throws -> ObjectGenerationResult<Object> where Object : Decodable, Object : Sendable | Sources/SwiftAISDK/AIFacadeGenerateObject.swift |
| Type Method | generateObject(model:request:schema:schemaName:schemaDescription:retryPolicy:telemetry:callbacks:jsonInstruction:repairText:) | static func generateObject<Schema>(model: any LanguageModel, request: LanguageModelRequest, schema: Schema, schemaName: String? = nil, schemaDescription: String? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, callbacks: AIObjectGenerationCallbacks<Schema.Output>? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) async throws -> ObjectGenerationResult<Schema.Output> where Schema : AIObjectSchema | Sources/SwiftAISDK/AIFacadeGenerateObject.swift |
| Type Method | generateObjectArray(model:prompt:as:elementSchema:schemaName:schemaDescription:temperature:topP:topK:presencePenalty:frequencyPenalty:seed:maxOutputTokens:stopSequences:reasoning:providerOptions:extraBody:headers:retryPolicy:telemetry:callbacks:jsonInstruction:repairText:) | static func generateObjectArray<Element>(model: any LanguageModel, prompt: String, as type: Element.Type = Element.self, elementSchema: JSONValue, schemaName: String? = nil, schemaDescription: String? = nil, temperature: Double? = nil, topP: Double? = nil, topK: Int? = nil, presencePenalty: Double? = nil, frequencyPenalty: Double? = nil, seed: Int? = nil, maxOutputTokens: Int? = nil, stopSequences: [String] = [], reasoning: String? = nil, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, callbacks: AIObjectGenerationCallbacks<[Element]>? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) async throws -> ObjectGenerationResult<[Element]> where Element : Decodable, Element : Sendable | Sources/SwiftAISDK/AIFacadeGenerateObject.swift |
| Type Method | generateObjectArray(model:prompt:elementSchema:schemaName:schemaDescription:temperature:topP:topK:presencePenalty:frequencyPenalty:seed:maxOutputTokens:stopSequences:reasoning:providerOptions:extraBody:headers:retryPolicy:telemetry:callbacks:jsonInstruction:repairText:) | static func generateObjectArray<ElementSchema>(model: any LanguageModel, prompt: String, elementSchema: ElementSchema, schemaName: String? = nil, schemaDescription: String? = nil, temperature: Double? = nil, topP: Double? = nil, topK: Int? = nil, presencePenalty: Double? = nil, frequencyPenalty: Double? = nil, seed: Int? = nil, maxOutputTokens: Int? = nil, stopSequences: [String] = [], reasoning: String? = nil, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, callbacks: AIObjectGenerationCallbacks<[ElementSchema.Output]>? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) async throws -> ObjectGenerationResult<[ElementSchema.Output]> where ElementSchema : AIObjectSchema | Sources/SwiftAISDK/AIFacadeGenerateObject.swift |
| Type Method | generateObjectArray(model:request:as:elementSchema:schemaName:schemaDescription:retryPolicy:telemetry:callbacks:jsonInstruction:repairText:) | static func generateObjectArray<Element>(model: any LanguageModel, request: LanguageModelRequest, as type: Element.Type = Element.self, elementSchema: JSONValue, schemaName: String? = nil, schemaDescription: String? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, callbacks: AIObjectGenerationCallbacks<[Element]>? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) async throws -> ObjectGenerationResult<[Element]> where Element : Decodable, Element : Sendable | Sources/SwiftAISDK/AIFacadeGenerateObject.swift |
| Type Method | generateObjectArray(model:request:elementSchema:schemaName:schemaDescription:retryPolicy:telemetry:callbacks:jsonInstruction:repairText:) | static func generateObjectArray<ElementSchema>(model: any LanguageModel, request: LanguageModelRequest, elementSchema: ElementSchema, schemaName: String? = nil, schemaDescription: String? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, callbacks: AIObjectGenerationCallbacks<[ElementSchema.Output]>? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) async throws -> ObjectGenerationResult<[ElementSchema.Output]> where ElementSchema : AIObjectSchema | Sources/SwiftAISDK/AIFacadeGenerateObject.swift |
| Type Method | json(name:description:) | static func json(name: String? = nil, description: String? = nil) -> AIOutput<JSONValue, JSONValue> | Sources/SwiftAISDK/Output.swift |
| Type Method | object(schema:name:description:) | static func object<Schema>(schema: Schema, name: String? = nil, description: String? = nil) -> AIOutput<Schema.Output, JSONValue> where Schema : AIObjectSchema | Sources/SwiftAISDK/Output.swift |
| Type Method | object(schema:name:description:as:) | static func object<Object>(schema: JSONValue? = nil, name: String? = nil, description: String? = nil, as type: Object.Type = Object.self) -> AIOutput<Object, JSONValue> where Object : Decodable, Object : Sendable | Sources/SwiftAISDK/Output.swift |
| Type Method | streamObject(model:prompt:as:schema:schemaName:schemaDescription:temperature:topP:topK:presencePenalty:frequencyPenalty:seed:maxOutputTokens:stopSequences:reasoning:providerOptions:extraBody:headers:timeoutNanoseconds:retryPolicy:telemetry:callbacks:jsonInstruction:repairText:) | static func streamObject<Object>(model: any LanguageModel, prompt: String, as type: Object.Type = Object.self, schema: JSONValue? = nil, schemaName: String? = nil, schemaDescription: String? = nil, temperature: Double? = nil, topP: Double? = nil, topK: Int? = nil, presencePenalty: Double? = nil, frequencyPenalty: Double? = nil, seed: Int? = nil, maxOutputTokens: Int? = nil, stopSequences: [String] = [], reasoning: String? = nil, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], timeoutNanoseconds: UInt64? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, callbacks: AIObjectGenerationCallbacks<Object>? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) -> AsyncThrowingStream<ObjectStreamPart<Object>, any Error> where Object : Decodable, Object : Sendable | Sources/SwiftAISDK/AIFacadeStreamObjectSchema.swift |
| Type Method | streamObject(model:prompt:schema:schemaName:schemaDescription:temperature:topP:topK:presencePenalty:frequencyPenalty:seed:maxOutputTokens:stopSequences:reasoning:providerOptions:extraBody:headers:timeoutNanoseconds:retryPolicy:telemetry:callbacks:jsonInstruction:repairText:) | static func streamObject<Schema>(model: any LanguageModel, prompt: String, schema: Schema, schemaName: String? = nil, schemaDescription: String? = nil, temperature: Double? = nil, topP: Double? = nil, topK: Int? = nil, presencePenalty: Double? = nil, frequencyPenalty: Double? = nil, seed: Int? = nil, maxOutputTokens: Int? = nil, stopSequences: [String] = [], reasoning: String? = nil, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], timeoutNanoseconds: UInt64? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, callbacks: AIObjectGenerationCallbacks<Schema.Output>? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) -> AsyncThrowingStream<ObjectStreamPart<Schema.Output>, any Error> where Schema : AIObjectSchema | Sources/SwiftAISDK/AIFacadeStreamObjectSchema.swift |
| Type Method | streamObject(model:request:as:schema:schemaName:schemaDescription:timeoutNanoseconds:retryPolicy:telemetry:callbacks:jsonInstruction:repairText:) | static func streamObject<Object>(model: any LanguageModel, request: LanguageModelRequest, as type: Object.Type = Object.self, schema: JSONValue? = nil, schemaName: String? = nil, schemaDescription: String? = nil, timeoutNanoseconds: UInt64? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, callbacks: AIObjectGenerationCallbacks<Object>? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) -> AsyncThrowingStream<ObjectStreamPart<Object>, any Error> where Object : Decodable, Object : Sendable | Sources/SwiftAISDK/AIFacadeStreamObject.swift |
| Type Method | streamObject(model:request:schema:schemaName:schemaDescription:timeoutNanoseconds:retryPolicy:telemetry:callbacks:jsonInstruction:repairText:) | static func streamObject<Schema>(model: any LanguageModel, request: LanguageModelRequest, schema: Schema, schemaName: String? = nil, schemaDescription: String? = nil, timeoutNanoseconds: UInt64? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, callbacks: AIObjectGenerationCallbacks<Schema.Output>? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) -> AsyncThrowingStream<ObjectStreamPart<Schema.Output>, any Error> where Schema : AIObjectSchema | Sources/SwiftAISDK/AIFacadeStreamObjectSchema.swift |
| Type Method | streamObjectArray(model:prompt:as:elementSchema:schemaName:schemaDescription:temperature:topP:topK:presencePenalty:frequencyPenalty:seed:maxOutputTokens:stopSequences:reasoning:providerOptions:extraBody:headers:timeoutNanoseconds:retryPolicy:telemetry:callbacks:jsonInstruction:repairText:) | static func streamObjectArray<Element>(model: any LanguageModel, prompt: String, as type: Element.Type = Element.self, elementSchema: JSONValue, schemaName: String? = nil, schemaDescription: String? = nil, temperature: Double? = nil, topP: Double? = nil, topK: Int? = nil, presencePenalty: Double? = nil, frequencyPenalty: Double? = nil, seed: Int? = nil, maxOutputTokens: Int? = nil, stopSequences: [String] = [], reasoning: String? = nil, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], timeoutNanoseconds: UInt64? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, callbacks: AIObjectGenerationCallbacks<[Element]>? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) -> AsyncThrowingStream<ObjectStreamPart<[Element]>, any Error> where Element : Decodable, Element : Sendable | Sources/SwiftAISDK/AIFacadeStreamObjectArray.swift |
| Type Method | streamObjectArray(model:prompt:elementSchema:schemaName:schemaDescription:temperature:topP:topK:presencePenalty:frequencyPenalty:seed:maxOutputTokens:stopSequences:reasoning:providerOptions:extraBody:headers:timeoutNanoseconds:retryPolicy:telemetry:callbacks:jsonInstruction:repairText:) | static func streamObjectArray<ElementSchema>(model: any LanguageModel, prompt: String, elementSchema: ElementSchema, schemaName: String? = nil, schemaDescription: String? = nil, temperature: Double? = nil, topP: Double? = nil, topK: Int? = nil, presencePenalty: Double? = nil, frequencyPenalty: Double? = nil, seed: Int? = nil, maxOutputTokens: Int? = nil, stopSequences: [String] = [], reasoning: String? = nil, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], timeoutNanoseconds: UInt64? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, callbacks: AIObjectGenerationCallbacks<[ElementSchema.Output]>? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) -> AsyncThrowingStream<ObjectStreamPart<[ElementSchema.Output]>, any Error> where ElementSchema : AIObjectSchema | Sources/SwiftAISDK/AIFacadeStreamObjectArray.swift |
| Type Method | streamObjectArray(model:request:as:elementSchema:schemaName:schemaDescription:timeoutNanoseconds:retryPolicy:telemetry:callbacks:jsonInstruction:repairText:) | static func streamObjectArray<Element>(model: any LanguageModel, request: LanguageModelRequest, as type: Element.Type = Element.self, elementSchema: JSONValue, schemaName: String? = nil, schemaDescription: String? = nil, timeoutNanoseconds: UInt64? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, callbacks: AIObjectGenerationCallbacks<[Element]>? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) -> AsyncThrowingStream<ObjectStreamPart<[Element]>, any Error> where Element : Decodable, Element : Sendable | Sources/SwiftAISDK/AIFacadeStreamObjectArray.swift |
| Type Method | streamObjectArray(model:request:elementSchema:schemaName:schemaDescription:timeoutNanoseconds:retryPolicy:telemetry:callbacks:jsonInstruction:repairText:) | static func streamObjectArray<ElementSchema>(model: any LanguageModel, request: LanguageModelRequest, elementSchema: ElementSchema, schemaName: String? = nil, schemaDescription: String? = nil, timeoutNanoseconds: UInt64? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, callbacks: AIObjectGenerationCallbacks<[ElementSchema.Output]>? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) -> AsyncThrowingStream<ObjectStreamPart<[ElementSchema.Output]>, any Error> where ElementSchema : AIObjectSchema | Sources/SwiftAISDK/AIFacadeStreamObjectArray.swift |
| Type Method | text() | static func text() -> AIOutput<String, String> | Sources/SwiftAISDK/Output.swift |
| Type Property | automatic | static let automatic: AIJSONInstruction | Sources/SwiftAISDK/CoreObjectSchema.swift |
| Type Property | disabled | static let disabled: AIJSONInstruction | Sources/SwiftAISDK/CoreObjectSchema.swift |