| Case | AIAbortSource.signal(_:) | case signal(AIAbortSignal) | Sources/SwiftAISDK/CoreAbort.swift |
| Case | AIAbortSource.timeoutMilliseconds(_:) | case timeoutMilliseconds(Int) | Sources/SwiftAISDK/CoreAbort.swift |
| Case | AIBatchItemResult.cancelled(id:error:providerMetadata:) | case cancelled(id: String, error: AIBatchError? = nil, providerMetadata: [String : JSONValue] = [:]) | Sources/SwiftAISDK/CoreBatch.swift |
| Case | AIBatchItemResult.expired(id:error:providerMetadata:) | case expired(id: String, error: AIBatchError? = nil, providerMetadata: [String : JSONValue] = [:]) | Sources/SwiftAISDK/CoreBatch.swift |
| Case | AIBatchItemResult.failed(id:error:providerMetadata:) | case failed(id: String, error: AIBatchError, providerMetadata: [String : JSONValue] = [:]) | Sources/SwiftAISDK/CoreBatch.swift |
| Case | AIBatchItemResult.succeeded(id:result:) | case succeeded(id: String, result: Result) | Sources/SwiftAISDK/CoreBatch.swift |
| Case | AIBatchLifecycleStatus.completed | case completed | Sources/SwiftAISDK/CoreBatch.swift |
| Case | AIBatchLifecycleStatus.failed | case failed | Sources/SwiftAISDK/CoreBatch.swift |
| Case | AIBatchLifecycleStatus.pending | case pending | Sources/SwiftAISDK/CoreBatch.swift |
| Case | AIBatchReferenceType.text | case text | Sources/SwiftAISDK/CoreBatch.swift |
| Case | AIContentPart.custom(_:providerMetadata:) | case custom(JSONValue, providerMetadata: [String : JSONValue] = [:]) | Sources/SwiftAISDK/CoreMessages.swift |
| Case | AIContentPart.data(mimeType:data:providerMetadata:) | case data(mimeType: String, data: Data, providerMetadata: [String : JSONValue] = [:]) | Sources/SwiftAISDK/CoreMessages.swift |
| Case | AIContentPart.file(mimeType:data:filename:providerMetadata:) | case file(mimeType: String, data: Data, filename: String? = nil, providerMetadata: [String : JSONValue] = [:]) | Sources/SwiftAISDK/CoreMessages.swift |
| Case | AIContentPart.imageURL(_:providerMetadata:) | case imageURL(String, providerMetadata: [String : JSONValue] = [:]) | Sources/SwiftAISDK/CoreMessages.swift |
| Case | AIContentPart.providerReference(mimeType:reference:filename:providerMetadata:) | case providerReference(mimeType: String, reference: AIProviderReference, filename: String? = nil, providerMetadata: [String : JSONValue] = [:]) | Sources/SwiftAISDK/CoreMessages.swift |
| Case | AIContentPart.reasoning(_:providerMetadata:) | case reasoning(String, providerMetadata: [String : JSONValue] = [:]) | Sources/SwiftAISDK/CoreMessages.swift |
| Case | AIContentPart.reasoningFile(_:) | case reasoningFile(AIStreamFile) | Sources/SwiftAISDK/CoreMessages.swift |
| Case | AIContentPart.text(_:providerMetadata:) | case text(String, providerMetadata: [String : JSONValue] = [:]) | Sources/SwiftAISDK/CoreMessages.swift |
| Case | AIContentPart.toolApprovalRequest(_:) | case toolApprovalRequest(AIToolApprovalRequest) | Sources/SwiftAISDK/CoreMessages.swift |
| Case | AIContentPart.toolApprovalResponse(_:) | case toolApprovalResponse(AIToolApprovalResponse) | Sources/SwiftAISDK/CoreMessages.swift |
| Case | AIContentPart.toolCall(_:) | case toolCall(AIToolCall) | Sources/SwiftAISDK/CoreMessages.swift |
| Case | AIContentPart.toolResult(_:) | case toolResult(AIToolResult) | Sources/SwiftAISDK/CoreMessages.swift |
| Case | AIDuplexWebSocketEvent.closed(_:) | case closed(AIDuplexWebSocketCloseMetadata) | Sources/SwiftAISDK/DuplexWebSocketTransport.swift |
| Case | AIDuplexWebSocketEvent.message(_:) | case message(AIDuplexWebSocketMessage) | Sources/SwiftAISDK/DuplexWebSocketTransport.swift |
| Case | AIDuplexWebSocketEvent.opened(protocol:) | case opened(protocol: String?) | Sources/SwiftAISDK/DuplexWebSocketTransport.swift |
| Case | AIDuplexWebSocketMessage.binary(_:) | case binary(Data) | Sources/SwiftAISDK/DuplexWebSocketTransport.swift |
| Case | AIDuplexWebSocketMessage.text(_:) | case text(String) | Sources/SwiftAISDK/DuplexWebSocketTransport.swift |
| Case | AIError.apiCall(_:) | case apiCall(AIAPICallError) | Sources/SwiftAISDK/Core.swift |
| Case | AIError.gateway(_:) | case gateway(GatewayError) | Sources/SwiftAISDK/Core.swift |
| Case | AIError.invalidArgument(argument:message:) | case invalidArgument(argument: String, message: String) | Sources/SwiftAISDK/Core.swift |
| Case | AIError.invalidResponse(provider:message:) | case invalidResponse(provider: String, message: String) | Sources/SwiftAISDK/Core.swift |
| Case | AIError.invalidURL(_:) | case invalidURL(String) | Sources/SwiftAISDK/Core.swift |
| Case | AIError.missingAPIKey(provider:environmentVariables:) | case missingAPIKey(provider: String, environmentVariables: [String]) | Sources/SwiftAISDK/Core.swift |
| Case | AIError.timeout(durationNanoseconds:) | case timeout(durationNanoseconds: UInt64) | Sources/SwiftAISDK/Core.swift |
| Case | AIError.unsupportedModel(provider:capability:modelID:) | case unsupportedModel(provider: String, capability: ModelCapability, modelID: String) | Sources/SwiftAISDK/Core.swift |
| Case | AIFileOperation.delete | case delete | Sources/SwiftAISDK/CoreProtocols.swift |
| Case | AIFileOperation.download | case download | Sources/SwiftAISDK/CoreProtocols.swift |
| Case | AIFileOperation.getMetadata | case getMetadata | Sources/SwiftAISDK/CoreProtocols.swift |
| Case | AIFileOperation.upload | case upload | Sources/SwiftAISDK/CoreProtocols.swift |
| Case | AIPruneEmptyMessages.keep | case keep | Sources/SwiftAISDK/PruneMessages.swift |
| Case | AIPruneEmptyMessages.remove | case remove | Sources/SwiftAISDK/PruneMessages.swift |
| Case | AIPruneReasoning.all | case all | Sources/SwiftAISDK/PruneMessages.swift |
| Case | AIPruneReasoning.beforeLastMessage | case beforeLastMessage | Sources/SwiftAISDK/PruneMessages.swift |
| Case | AIPruneReasoning.none | case none | Sources/SwiftAISDK/PruneMessages.swift |
| Case | AIPruneToolCalls.Scope.all | case all | Sources/SwiftAISDK/PruneMessages.swift |
| Case | AIPruneToolCalls.Scope.beforeLastMessages(_:) | case beforeLastMessages(Int) | Sources/SwiftAISDK/PruneMessages.swift |
| Case | AIRealtimeClientEvent.conversationItemCreate(_:) | case conversationItemCreate(AIRealtimeConversationItem) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeClientEvent.conversationItemTruncate(itemID:contentIndex:audioEndMilliseconds:) | case conversationItemTruncate(itemID: String, contentIndex: Int, audioEndMilliseconds: Int) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeClientEvent.inputAudioAppend(audio:) | case inputAudioAppend(audio: String) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeClientEvent.inputAudioClear | case inputAudioClear | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeClientEvent.inputAudioCommit | case inputAudioCommit | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeClientEvent.responseCancel | case responseCancel | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeClientEvent.responseCreate(options:) | case responseCreate(options: AIRealtimeResponseOptions? = nil) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeClientEvent.sessionUpdate(_:) | case sessionUpdate(AIRealtimeSessionConfiguration) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeConversationItem.audioMessage(audio:) | case audioMessage(audio: String) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeConversationItem.functionCallOutput(callID:name:output:) | case functionCallOutput(callID: String, name: String?, output: String) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeConversationItem.textMessage(text:) | case textMessage(text: String) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeOutputModality.audio | case audio | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeOutputModality.text | case text | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeServerEvent.audioCommitted(itemID:previousItemID:raw:) | case audioCommitted(itemID: String?, previousItemID: String?, raw: JSONValue) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeServerEvent.audioDelta(responseID:itemID:delta:raw:) | case audioDelta(responseID: String, itemID: String, delta: String, raw: JSONValue) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeServerEvent.audioDone(responseID:itemID:raw:) | case audioDone(responseID: String, itemID: String, raw: JSONValue) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeServerEvent.audioTranscriptDelta(responseID:itemID:delta:raw:) | case audioTranscriptDelta(responseID: String, itemID: String, delta: String, raw: JSONValue) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeServerEvent.audioTranscriptDone(responseID:itemID:transcript:raw:) | case audioTranscriptDone(responseID: String, itemID: String, transcript: String?, raw: JSONValue) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeServerEvent.contentPartAdded(responseID:itemID:raw:) | case contentPartAdded(responseID: String, itemID: String, raw: JSONValue) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeServerEvent.contentPartDone(responseID:itemID:raw:) | case contentPartDone(responseID: String, itemID: String, raw: JSONValue) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeServerEvent.conversationItemAdded(itemID:item:raw:) | case conversationItemAdded(itemID: String, item: JSONValue, raw: JSONValue) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeServerEvent.custom(rawType:raw:) | case custom(rawType: String, raw: JSONValue) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeServerEvent.error(message:code:raw:) | case error(message: String, code: String?, raw: JSONValue) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeServerEvent.functionCallArgumentsDelta(responseID:itemID:callID:delta:raw:) | case functionCallArgumentsDelta(responseID: String, itemID: String, callID: String, delta: String, raw: JSONValue) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeServerEvent.functionCallArgumentsDone(responseID:itemID:callID:name:arguments:raw:) | case functionCallArgumentsDone(responseID: String, itemID: String, callID: String, name: String, arguments: String, raw: JSONValue) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeServerEvent.inputTranscriptionCompleted(itemID:transcript:raw:) | case inputTranscriptionCompleted(itemID: String, transcript: String, raw: JSONValue) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeServerEvent.outputItemAdded(responseID:itemID:raw:) | case outputItemAdded(responseID: String, itemID: String, raw: JSONValue) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeServerEvent.outputItemDone(responseID:itemID:raw:) | case outputItemDone(responseID: String, itemID: String, raw: JSONValue) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeServerEvent.responseCreated(responseID:raw:) | case responseCreated(responseID: String, raw: JSONValue) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeServerEvent.responseDone(responseID:status:raw:) | case responseDone(responseID: String, status: String, raw: JSONValue) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeServerEvent.sessionCreated(sessionID:raw:) | case sessionCreated(sessionID: String?, raw: JSONValue) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeServerEvent.sessionUpdated(raw:) | case sessionUpdated(raw: JSONValue) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeServerEvent.speechStarted(itemID:raw:) | case speechStarted(itemID: String?, raw: JSONValue) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeServerEvent.speechStopped(itemID:raw:) | case speechStopped(itemID: String?, raw: JSONValue) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeServerEvent.textDelta(responseID:itemID:delta:raw:) | case textDelta(responseID: String, itemID: String, delta: String, raw: JSONValue) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeServerEvent.textDone(responseID:itemID:text:raw:) | case textDone(responseID: String, itemID: String, text: String?, raw: JSONValue) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeSessionError.closed | case closed | Sources/SwiftAISDK/AIRealtimeSession.swift |
| Case | AIRealtimeSessionError.connectionEndedBeforeOpening | case connectionEndedBeforeOpening | Sources/SwiftAISDK/AIRealtimeSession.swift |
| Case | AIRealtimeSessionEvent.closed(_:) | case closed(AIDuplexWebSocketCloseMetadata) | Sources/SwiftAISDK/AIRealtimeSession.swift |
| Case | AIRealtimeSessionEvent.opened(protocol:) | case opened(protocol: String?) | Sources/SwiftAISDK/AIRealtimeSession.swift |
| Case | AIRealtimeSessionEvent.server(_:) | case server(AIRealtimeServerEvent) | Sources/SwiftAISDK/AIRealtimeSession.swift |
| Case | AIRealtimeTurnDetectionType.disabled | case disabled | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeTurnDetectionType.semanticVAD | case semanticVAD | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeTurnDetectionType.serverVAD | case serverVAD | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeWireMessage.binary(_:) | case binary(Data) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeWireMessage.json(_:) | case json(JSONValue) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIRealtimeWireMessage.text(_:) | case text(String) | Sources/SwiftAISDK/CoreRealtime.swift |
| Case | AIResponseFormat.json(schema:name:description:) | case json(schema: JSONValue? = nil, name: String? = nil, description: String? = nil) | Sources/SwiftAISDK/CoreAbort.swift |
| Case | AIResponseFormat.text | case text | Sources/SwiftAISDK/CoreAbort.swift |
| Case | AIRetryErrorReason.cancelled | case cancelled | Sources/SwiftAISDK/Core.swift |
| Case | AIRetryErrorReason.errorNotRetryable | case errorNotRetryable | Sources/SwiftAISDK/Core.swift |
| Case | AIRetryErrorReason.maxRetriesExceeded | case maxRetriesExceeded | Sources/SwiftAISDK/Core.swift |
| Case | AISmoothStreamChunking.line | case line | Sources/SwiftAISDK/CoreUtilities.swift |
| Case | AISmoothStreamChunking.word | case word | Sources/SwiftAISDK/CoreUtilities.swift |
| Case | AIStreamTimeoutPhase.chunk | case chunk | Sources/SwiftAISDK/AIStreamTimeouts.swift |
| Case | AIStreamTimeoutPhase.firstChunk | case firstChunk | Sources/SwiftAISDK/AIStreamTimeouts.swift |
| Case | AIUIMessagePart.custom(_:providerMetadata:) | case custom(JSONValue, providerMetadata: [String : JSONValue] = [:]) | Sources/SwiftAISDK/CoreUIMessages.swift |
| Case | AIUIMessagePart.data(_:) | case data(AIUIDataPart) | Sources/SwiftAISDK/CoreUIMessages.swift |
| Case | AIUIMessagePart.error(message:rawValue:) | case error(message: String, rawValue: JSONValue?) | Sources/SwiftAISDK/CoreUIMessages.swift |
| Case | AIUIMessagePart.file(_:) | case file(AIStreamFile) | Sources/SwiftAISDK/CoreUIMessages.swift |
| Case | AIUIMessagePart.metadata(_:) | case metadata([String : JSONValue]) | Sources/SwiftAISDK/CoreUIMessages.swift |
| Case | AIUIMessagePart.raw(_:) | case raw(JSONValue) | Sources/SwiftAISDK/CoreUIMessages.swift |
| Case | AIUIMessagePart.reasoning(_:) | case reasoning(AIUIReasoningPart) | Sources/SwiftAISDK/CoreUIMessages.swift |
| Case | AIUIMessagePart.reasoningFile(_:) | case reasoningFile(AIStreamFile) | Sources/SwiftAISDK/CoreUIMessages.swift |
| Case | AIUIMessagePart.source(_:) | case source(AISource) | Sources/SwiftAISDK/CoreUIMessages.swift |
| Case | AIUIMessagePart.text(_:) | case text(AIUITextPart) | Sources/SwiftAISDK/CoreUIMessages.swift |
| Case | AIUIMessagePart.toolApprovalRequest(_:) | case toolApprovalRequest(AIToolApprovalRequest) | Sources/SwiftAISDK/CoreUIMessages.swift |
| Case | AIUIMessagePart.toolApprovalResponse(_:) | case toolApprovalResponse(AIToolApprovalResponse) | Sources/SwiftAISDK/CoreUIMessages.swift |
| Case | AIUIMessagePart.toolCall(_:) | case toolCall(AIToolCall) | Sources/SwiftAISDK/CoreUIMessages.swift |
| Case | AIUIMessagePart.toolResult(_:) | case toolResult(AIToolResult) | Sources/SwiftAISDK/CoreUIMessages.swift |
| Case | AIUIStreamingPartState.done | case done | Sources/SwiftAISDK/CoreUIMessages.swift |
| Case | AIUIStreamingPartState.streaming | case streaming | Sources/SwiftAISDK/CoreUIMessages.swift |
| Case | FileUploadData.data(_:) | case data(Data) | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Case | FileUploadData.stream(_:) | case stream(AsyncThrowingStream<Data, any Error>) | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Case | JSONValue.array(_:) | case array([JSONValue]) | Sources/SwiftAISDK/JSONValue.swift |
| Case | JSONValue.bool(_:) | case bool(Bool) | Sources/SwiftAISDK/JSONValue.swift |
| Case | JSONValue.null | case null | Sources/SwiftAISDK/JSONValue.swift |
| Case | JSONValue.number(_:) | case number(Double) | Sources/SwiftAISDK/JSONValue.swift |
| Case | JSONValue.object(_:) | case object([String : JSONValue]) | Sources/SwiftAISDK/JSONValue.swift |
| Case | JSONValue.string(_:) | case string(String) | Sources/SwiftAISDK/JSONValue.swift |
| Case | MessageRole.assistant | case assistant | Sources/SwiftAISDK/CoreMessages.swift |
| Case | MessageRole.system | case system | Sources/SwiftAISDK/CoreMessages.swift |
| Case | MessageRole.tool | case tool | Sources/SwiftAISDK/CoreMessages.swift |
| Case | MessageRole.user | case user | Sources/SwiftAISDK/CoreMessages.swift |
| Case | ModelCapability.audioGeneration | case audioGeneration | Sources/SwiftAISDK/CoreMessages.swift |
| Case | ModelCapability.audioTransformation | case audioTransformation | Sources/SwiftAISDK/CoreMessages.swift |
| Case | ModelCapability.completion | case completion | Sources/SwiftAISDK/CoreMessages.swift |
| Case | ModelCapability.dubbing | case dubbing | Sources/SwiftAISDK/CoreMessages.swift |
| Case | ModelCapability.embedding | case embedding | Sources/SwiftAISDK/CoreMessages.swift |
| Case | ModelCapability.image | case image | Sources/SwiftAISDK/CoreMessages.swift |
| Case | ModelCapability.language | case language | Sources/SwiftAISDK/CoreMessages.swift |
| Case | ModelCapability.reranking | case reranking | Sources/SwiftAISDK/CoreMessages.swift |
| Case | ModelCapability.speech | case speech | Sources/SwiftAISDK/CoreMessages.swift |
| Case | ModelCapability.transcription | case transcription | Sources/SwiftAISDK/CoreMessages.swift |
| Case | ModelCapability.video | case video | Sources/SwiftAISDK/CoreMessages.swift |
| Case | TextBatchItemResult.cancelled(id:error:providerMetadata:) | case cancelled(id: String, error: AIBatchError? = nil, providerMetadata: [String : JSONValue] = [:]) | Sources/SwiftAISDK/CoreBatch.swift |
| Case | TextBatchItemResult.expired(id:error:providerMetadata:) | case expired(id: String, error: AIBatchError? = nil, providerMetadata: [String : JSONValue] = [:]) | Sources/SwiftAISDK/CoreBatch.swift |
| Case | TextBatchItemResult.failed(id:error:providerMetadata:) | case failed(id: String, error: AIBatchError, providerMetadata: [String : JSONValue] = [:]) | Sources/SwiftAISDK/CoreBatch.swift |
| Case | TextBatchItemResult.succeeded(id:result:) | case succeeded(id: String, result: TextBatchGenerationResult) | Sources/SwiftAISDK/CoreBatch.swift |
| Class | AIAbortController | final class AIAbortController | Sources/SwiftAISDK/CoreAbort.swift |
| Class | AIAbortHandlerRegistration | final class AIAbortHandlerRegistration | Sources/SwiftAISDK/CoreAbort.swift |
| Class | AIAbortSignal | final class AIAbortSignal | Sources/SwiftAISDK/CoreAbort.swift |
| Class | AIDelayedPromise | final class AIDelayedPromise<Value> where Value : Sendable | Sources/SwiftAISDK/CoreDelayedPromise.swift |
| Class | AIRealtimeSession | final class AIRealtimeSession | Sources/SwiftAISDK/AIRealtimeSession.swift |
| Class | AISerialJobExecutor | final class AISerialJobExecutor | Sources/SwiftAISDK/CoreSerialJobExecutor.swift |
| Class | URLSessionDuplexWebSocketTransport | final class URLSessionDuplexWebSocketTransport | Sources/SwiftAISDK/DuplexWebSocketTransport.swift |
| Class | URLSessionTransport | final class URLSessionTransport | Sources/SwiftAISDK/HTTP.swift |
| Enumeration | AI | enum AI | Sources/SwiftAISDK/AI.swift |
| Enumeration | AIAbortSource | enum AIAbortSource | Sources/SwiftAISDK/CoreAbort.swift |
| Enumeration | AIBatchItemResult | enum AIBatchItemResult<Result> where Result : Sendable | Sources/SwiftAISDK/CoreBatch.swift |
| Enumeration | AIBatchLifecycleStatus | enum AIBatchLifecycleStatus | Sources/SwiftAISDK/CoreBatch.swift |
| Enumeration | AIBatchReferenceType | enum AIBatchReferenceType | Sources/SwiftAISDK/CoreBatch.swift |
| Enumeration | AIContentPart | enum AIContentPart | Sources/SwiftAISDK/CoreMessages.swift |
| Enumeration | AIDuplexWebSocketEvent | enum AIDuplexWebSocketEvent | Sources/SwiftAISDK/DuplexWebSocketTransport.swift |
| Enumeration | AIDuplexWebSocketMessage | enum AIDuplexWebSocketMessage | Sources/SwiftAISDK/DuplexWebSocketTransport.swift |
| Enumeration | AIError | enum AIError | Sources/SwiftAISDK/Core.swift |
| Enumeration | AIFileOperation | enum AIFileOperation | Sources/SwiftAISDK/CoreProtocols.swift |
| Enumeration | AIPruneEmptyMessages | enum AIPruneEmptyMessages | Sources/SwiftAISDK/PruneMessages.swift |
| Enumeration | AIPruneReasoning | enum AIPruneReasoning | Sources/SwiftAISDK/PruneMessages.swift |
| Enumeration | AIPruneToolCalls.Scope | enum Scope | Sources/SwiftAISDK/PruneMessages.swift |
| Enumeration | AIRealtimeClientEvent | enum AIRealtimeClientEvent | Sources/SwiftAISDK/CoreRealtime.swift |
| Enumeration | AIRealtimeConversationItem | enum AIRealtimeConversationItem | Sources/SwiftAISDK/CoreRealtime.swift |
| Enumeration | AIRealtimeOutputModality | enum AIRealtimeOutputModality | Sources/SwiftAISDK/CoreRealtime.swift |
| Enumeration | AIRealtimeServerEvent | enum AIRealtimeServerEvent | Sources/SwiftAISDK/CoreRealtime.swift |
| Enumeration | AIRealtimeSessionError | enum AIRealtimeSessionError | Sources/SwiftAISDK/AIRealtimeSession.swift |
| Enumeration | AIRealtimeSessionEvent | enum AIRealtimeSessionEvent | Sources/SwiftAISDK/AIRealtimeSession.swift |
| Enumeration | AIRealtimeTurnDetectionType | enum AIRealtimeTurnDetectionType | Sources/SwiftAISDK/CoreRealtime.swift |
| Enumeration | AIRealtimeWireMessage | enum AIRealtimeWireMessage | Sources/SwiftAISDK/CoreRealtime.swift |
| Enumeration | AIResponseFormat | enum AIResponseFormat | Sources/SwiftAISDK/CoreAbort.swift |
| Enumeration | AIRetryErrorReason | enum AIRetryErrorReason | Sources/SwiftAISDK/Core.swift |
| Enumeration | AISmoothStreamChunking | enum AISmoothStreamChunking | Sources/SwiftAISDK/CoreUtilities.swift |
| Enumeration | AIStreamTimeoutPhase | enum AIStreamTimeoutPhase | Sources/SwiftAISDK/AIStreamTimeouts.swift |
| Enumeration | AIUIMessagePart | enum AIUIMessagePart | Sources/SwiftAISDK/CoreUIMessages.swift |
| Enumeration | AIUIStreamingPartState | enum AIUIStreamingPartState | Sources/SwiftAISDK/CoreUIMessages.swift |
| Enumeration | AIWarningLogging | enum AIWarningLogging | Sources/SwiftAISDK/WarningLogging.swift |
| Enumeration | FileUploadData | enum FileUploadData | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Enumeration | JSONValue | enum JSONValue | Sources/SwiftAISDK/JSONValue.swift |
| Enumeration | MessageRole | enum MessageRole | Sources/SwiftAISDK/CoreMessages.swift |
| Enumeration | ModelCapability | enum ModelCapability | Sources/SwiftAISDK/CoreMessages.swift |
| Enumeration | TextBatchItemResult | enum TextBatchItemResult | Sources/SwiftAISDK/CoreBatch.swift |
| Function | addAdditionalPropertiesToJSONSchema(_:) | func addAdditionalPropertiesToJSONSchema(_ schema: JSONValue) -> JSONValue | Sources/SwiftAISDK/JSONSchemaValidator.swift |
| Function | asArray(_:) | func asArray<Value>(_ value: Value?) -> [Value] | Sources/SwiftAISDK/CoreUtilities.swift |
| Function | asArray(_:) | func asArray<Value>(_ value: [Value]?) -> [Value] | Sources/SwiftAISDK/CoreUtilities.swift |
| Function | calculateTokensPerSecond(tokens:durationMilliseconds:) | func calculateTokensPerSecond(tokens: Double?, durationMilliseconds: Double?) -> Double | Sources/SwiftAISDK/CoreUtilities.swift |
| Function | combineHeaders(_:) | func combineHeaders(_ headers: [String : String]...) -> [String : String] | Sources/SwiftAISDK/HTTP.swift |
| Function | cosineSimilarity(_:_:) | func cosineSimilarity(_ vector1: [Double], _ vector2: [Double]) throws -> Double | Sources/SwiftAISDK/CoreUtilities.swift |
| Function | cosineSimilarity(_:_:) | func cosineSimilarity(_ vector1: [Float], _ vector2: [Float]) throws -> Double | Sources/SwiftAISDK/CoreUtilities.swift |
| Function | createAgentUIStream(agent:uiMessages:options:messageID:) | func createAgentUIStream(agent: any AIAgent, uiMessages: [AIUIMessage], options: AIAgentCallOptions = AIAgentCallOptions(), messageID: String = UUID().uuidString) throws -> AsyncThrowingStream<AIUIMessage, any Error> | Sources/SwiftAISDK/AIAgent.swift |
| Function | createAsyncIterableStream(_:) | func createAsyncIterableStream<Element>(_ source: AsyncThrowingStream<Element, any Error>) -> AsyncThrowingStream<Element, any Error> where Element : Sendable | Sources/SwiftAISDK/CoreUtilities.swift |
| Function | createIdGenerator(prefix:separator:size:alphabet:) | func createIdGenerator(prefix: String? = nil, separator: String = "-", size: Int = 16, alphabet: String = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz") -> AIIdGenerator | Sources/SwiftAISDK/CoreUtilities.swift |
| Function | createStitchableStream() | func createStitchableStream<Element>() -> AIStitchableStream<Element> where Element : Sendable | Sources/SwiftAISDK/CoreUtilities.swift |
| Function | createToolNameMapping(tools:providerToolNames:) | func createToolNameMapping(tools: [String : JSONValue]? = nil, providerToolNames: [String : String]) -> AIToolNameMapping | Sources/SwiftAISDK/CoreUtilities.swift |
| Function | delay(_:abortSignal:) | func delay(_ delayInMilliseconds: Int? = nil, abortSignal: AIAbortSignal? = nil) async throws | Sources/SwiftAISDK/CoreAbort.swift |
| Function | extractLines(text:startLine:endLine:) | func extractLines(text: String, startLine: Int? = nil, endLine: Int? = nil) -> String | Sources/SwiftAISDK/CoreUtilities.swift |
| Function | filterNullable(_:) | func filterNullable<Value>(_ values: Value?...) -> [Value] | Sources/SwiftAISDK/CoreUtilities.swift |
| Function | generateId() | func generateId() -> String | Sources/SwiftAISDK/CoreUtilities.swift |
| Function | getPotentialStartIndex(_:_:) | func getPotentialStartIndex(_ text: String, _ searchedText: String) -> Int? | Sources/SwiftAISDK/CoreUtilities.swift |
| Function | isCustomReasoning(_:) | func isCustomReasoning(_ reasoning: String?) -> Bool | Sources/SwiftAISDK/CoreUtilities.swift |
| Function | isDeepEqualData(_:_:) | func isDeepEqualData(_ lhs: JSONValue, _ rhs: JSONValue) -> Bool | Sources/SwiftAISDK/CoreUtilities.swift |
| Function | isJSONSerializable(_:) | func isJSONSerializable(_ value: Any?) -> Bool | Sources/SwiftAISDK/JSONParsing.swift |
| Function | isParsableJSON(_:) | func isParsableJSON(_ input: String) -> Bool | Sources/SwiftAISDK/JSONParsing.swift |
| Function | isURLSupported(mediaType:url:supportedURLs:) | func isURLSupported(mediaType: String, url: String, supportedURLs: [String : [AISupportedURLPattern]]) -> Bool | Sources/SwiftAISDK/CoreProtocols.swift |
| Function | mapReasoningToProviderBudget(reasoning:maxOutputTokens:maxReasoningBudget:minReasoningBudget:budgetPercentages:warnings:) | func mapReasoningToProviderBudget(reasoning: String, maxOutputTokens: Int, maxReasoningBudget: Int, minReasoningBudget: Int = 1024, budgetPercentages: [String : Double] = [ "minimal": 0.02, "low": 0.1, "medium": 0.3, "high": 0.6, "xhigh": 0.9 ], warnings: inout [AIWarning]) -> Int? | Sources/SwiftAISDK/CoreUtilities.swift |
| Function | mapReasoningToProviderEffort(reasoning:effortMap:warnings:) | func mapReasoningToProviderEffort(reasoning: String, effortMap: [String : String], warnings: inout [AIWarning]) -> String? | Sources/SwiftAISDK/CoreUtilities.swift |
| Function | mergeAbortSignals(_:) | @discardableResult func mergeAbortSignals(_ signals: AIAbortSignal?...) -> AIAbortSignal? | Sources/SwiftAISDK/CoreAbort.swift |
| Function | mergeAbortSignals(_:) | @discardableResult func mergeAbortSignals(_ signals: [AIAbortSignal?]) -> AIAbortSignal? | Sources/SwiftAISDK/CoreAbort.swift |
| Function | mergeAbortSignals(sources:) | @discardableResult func mergeAbortSignals(sources: AIAbortSource?...) -> AIAbortSignal? | Sources/SwiftAISDK/CoreAbort.swift |
| Function | mergeAbortSignals(sources:) | @discardableResult func mergeAbortSignals(sources: [AIAbortSource?]) -> AIAbortSignal? | Sources/SwiftAISDK/CoreAbort.swift |
| Function | mergeCallbacks(_:) | func mergeCallbacks<Event>(_ callbacks: [AICallback<Event>?]) -> AICallback<Event> where Event : Sendable | Sources/SwiftAISDK/CoreUtilities.swift |
| Function | mergeCallbacks(_:) | func mergeCallbacks<Event>(_ callbacks: AICallback<Event>?...) -> AICallback<Event> where Event : Sendable | Sources/SwiftAISDK/CoreUtilities.swift |
| Function | mergeObjects(_:_:) | func mergeObjects(_ target: [String : JSONValue]?, _ source: [String : JSONValue]?) -> [String : JSONValue]? | Sources/SwiftAISDK/CoreUtilities.swift |
| Function | normalizeHeaderEntries(_:) | func normalizeHeaderEntries(_ entries: [(String, String?)]) -> [String : String] | Sources/SwiftAISDK/HTTP.swift |
| Function | normalizeHeaders(_:) | func normalizeHeaders(_ headers: [String : String?]?) -> [String : String] | Sources/SwiftAISDK/HTTP.swift |
| Function | normalizeHeaders(_:) | func normalizeHeaders(_ headers: [String : String]) -> [String : String] | Sources/SwiftAISDK/HTTP.swift |
| Function | notify(event:) | func notify<Event>(event: Event) async where Event : Sendable | Sources/SwiftAISDK/CoreUtilities.swift |
| Function | notify(event:callback:) | func notify<Event>(event: Event, callback: AICallback<Event>?) async where Event : Sendable | Sources/SwiftAISDK/CoreUtilities.swift |
| Function | notify(event:callbacks:) | func notify<Event>(event: Event, callbacks: [AICallback<Event>?]) async where Event : Sendable | Sources/SwiftAISDK/CoreUtilities.swift |
| Function | parseJSON(_:schema:) | func parseJSON(_ text: String, schema: JSONValue? = nil) throws -> JSONValue | Sources/SwiftAISDK/JSONParsing.swift |
| Function | prepareHeaders(_:defaultHeaders:) | func prepareHeaders(_ headers: [String : String?]?, defaultHeaders: [String : String]) -> [String : String] | Sources/SwiftAISDK/HTTP.swift |
| Function | prepareHeaders(_:defaultHeaders:) | func prepareHeaders(_ headers: [String : String], defaultHeaders: [String : String]) -> [String : String] | Sources/SwiftAISDK/HTTP.swift |
| Function | prepareRetries(maxRetries:) | func prepareRetries(maxRetries: Int? = nil) throws -> AIRetryPolicy | Sources/SwiftAISDK/Core.swift |
| Function | pruneMessages(_:reasoning:toolCalls:emptyMessages:) | func pruneMessages(_ messages: [AIMessage], reasoning: AIPruneReasoning = .none, toolCalls: [AIPruneToolCalls] = [], emptyMessages: AIPruneEmptyMessages = .remove) -> [AIMessage] | Sources/SwiftAISDK/PruneMessages.swift |
| Function | readResponseWithSizeLimit(response:url:maxBytes:) | func readResponseWithSizeLimit(response: AIHTTPStreamResponse, url: String, maxBytes: Int = AIDefaultMaxDownloadSize) async throws -> Data | Sources/SwiftAISDK/HTTP.swift |
| Function | removeNilEntries(_:) | func removeNilEntries<Value>(_ input: [String : Value?]) -> [String : Value] | Sources/SwiftAISDK/CoreUtilities.swift |
| Function | safeParseJSON(_:schema:) | func safeParseJSON(_ text: String, schema: JSONValue? = nil) -> AIJSONParseResult | Sources/SwiftAISDK/JSONParsing.swift |
| Function | secureJSONParse(_:) | func secureJSONParse(_ text: String) throws -> JSONValue | Sources/SwiftAISDK/JSONParsing.swift |
| Function | setAbortTimeout(abortController:label:timeoutMilliseconds:) | @discardableResult func setAbortTimeout(abortController: AIAbortController?, label: String, timeoutMilliseconds: Int?) -> Task<Void, Never>? | Sources/SwiftAISDK/CoreAbort.swift |
| Function | simulateReadableStream(chunks:initialDelayNanoseconds:chunkDelayNanoseconds:delay:) | func simulateReadableStream<Element>(chunks: [Element], initialDelayNanoseconds: UInt64? = 0, chunkDelayNanoseconds: UInt64? = 0, delay: (@Sendable (UInt64?) async throws -> Void)? = nil) -> AsyncThrowingStream<Element, any Error> where Element : Sendable | Sources/SwiftAISDK/CoreUtilities.swift |
| Function | smoothStream(_:delayNanoseconds:chunking:) | func smoothStream(_ stream: AsyncThrowingStream<LanguageStreamPart, any Error>, delayNanoseconds: UInt64? = 10_000_000, chunking: AISmoothStreamChunking = .word) -> AsyncThrowingStream<LanguageStreamPart, any Error> | Sources/SwiftAISDK/CoreUtilities.swift |
| Function | smoothStream(_:delayNanoseconds:detectChunk:) | func smoothStream(_ stream: AsyncThrowingStream<LanguageStreamPart, any Error>, delayNanoseconds: UInt64? = 10_000_000, detectChunk: @escaping AISmoothStreamChunkDetector) -> AsyncThrowingStream<LanguageStreamPart, any Error> | Sources/SwiftAISDK/CoreUtilities.swift |
| Function | splitArray(_:chunkSize:) | func splitArray<Element>(_ array: [Element], chunkSize: Int) throws -> [[Element]] | Sources/SwiftAISDK/CoreUtilities.swift |
| Function | stripFileExtension(_:) | func stripFileExtension(_ filename: String) -> String | Sources/SwiftAISDK/CoreUtilities.swift |
| Function | sumTokenCounts(_:_:) | func sumTokenCounts(_ lhs: Int?, _ rhs: Int?) -> Int? | Sources/SwiftAISDK/CoreUtilities.swift |
| Function | toResponseMessages(content:toolsByName:) | func toResponseMessages(content: [AIContentPart], toolsByName: [String : AITool] = [:]) async throws -> [AIMessage] | Sources/SwiftAISDK/ResponseMessages.swift |
| Function | toTextStream(_:) | func toTextStream(_ stream: AsyncThrowingStream<LanguageStreamPart, any Error>) -> AsyncThrowingStream<String, any Error> | Sources/SwiftAISDK/CoreUtilities.swift |
| Function | validateDownloadURL(_:) | func validateDownloadURL(_ string: String) throws -> URL | Sources/SwiftAISDK/HTTP.swift |
| Function | withUserAgentSuffix(_:_:) | func withUserAgentSuffix(_ headers: [String : String?]? = nil, _ userAgentSuffixParts: String...) -> [String : String] | Sources/SwiftAISDK/HTTP.swift |
| Function | withUserAgentSuffix(_:_:) | func withUserAgentSuffix(_ headers: [String : String], _ userAgentSuffixParts: String...) -> [String : String] | Sources/SwiftAISDK/HTTP.swift |
| Global Variable | AIDefaultMaxDownloadSize | let AIDefaultMaxDownloadSize: Int | Sources/SwiftAISDK/HTTP.swift |
| Initializer | init(_:) | init(_ matcher: @escaping @Sendable (String) -> Bool) | Sources/SwiftAISDK/CoreProtocols.swift |
| Initializer | init(_:) | init(_ format: AIStreamingAudioFormat) | Sources/SwiftAISDK/CoreRealtime.swift |
| Initializer | init(_:) | init(_ rawValue: String) | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Initializer | init(_:toolContexts:maxSteps:stopWhen:prepareStep:approval:choice:) | init(_ executableTools: [AITool], toolContexts: [String : JSONValue] = [:], maxSteps: Int = 5, stopWhen: [AIStopCondition] = [], prepareStep: AIPrepareStep? = nil, approval: AIToolApproval? = nil, choice: JSONValue? = nil) | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Initializer | init() | init() | Sources/SwiftAISDK/CoreAbort.swift |
| Initializer | init() | init() | Sources/SwiftAISDK/CoreDelayedPromise.swift |
| Initializer | init() | init() | Sources/SwiftAISDK/CoreSerialJobExecutor.swift |
| Initializer | init() | init() | Sources/SwiftAISDK/WarningLogging.swift |
| Initializer | init(arrayLiteral:) | init(arrayLiteral elements: JSONValue...) | Sources/SwiftAISDK/JSONValue.swift |
| Initializer | init(batch:warnings:) | init(batch: TextBatch, warnings: [AIBatchWarning] = []) | Sources/SwiftAISDK/CoreBatch.swift |
| Initializer | init(batch:warnings:providerMetadata:) | init(batch: TextBatch, warnings: [AIBatchWarning] = [], providerMetadata: [String : JSONValue] = [:]) | Sources/SwiftAISDK/CoreBatch.swift |
| Initializer | init(batchID:providerOptions:abortSignal:headers:) | init(batchID: String, providerOptions: [String : JSONValue] = [:], abortSignal: AIAbortSignal? = nil, headers: [String : String] = [:]) | Sources/SwiftAISDK/CoreBatch.swift |
| Initializer | init(batchID:status:warnings:) | init(batchID: String, status: AIBatchStatus, warnings: [AIBatchWarning] = []) | Sources/SwiftAISDK/CoreBatch.swift |
| Initializer | init(batchID:status:warnings:providerMetadata:) | init(batchID: String, status: AIBatchStatus, warnings: [AIBatchWarning] = [], providerMetadata: [String : JSONValue] = [:]) | Sources/SwiftAISDK/CoreBatch.swift |
| Initializer | init(booleanLiteral:) | init(booleanLiteral value: Bool) | Sources/SwiftAISDK/JSONValue.swift |
| Initializer | init(code:reason:) | init(code: Int, reason: String? = nil) | Sources/SwiftAISDK/DuplexWebSocketTransport.swift |
| Initializer | init(configuration:) | init(configuration: URLSessionConfiguration = .default) | Sources/SwiftAISDK/DuplexWebSocketTransport.swift |
| Initializer | init(content:mediaType:providerMetadata:warnings:requestMetadata:responseMetadata:) | init(content: AsyncThrowingStream<Data, any Error>, mediaType: String? = nil, providerMetadata: [String : JSONValue] = [:], warnings: [AIWarning] = [], requestMetadata: AIRequestMetadata = AIRequestMetadata(), responseMetadata: AIResponseMetadata = AIResponseMetadata()) | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Initializer | init(customToolNameToProviderToolName:) | init(customToolNameToProviderToolName: [String : String] = [:]) | Sources/SwiftAISDK/CoreUtilities.swift |
| Initializer | init(data:mediaType:filename:purpose:displayName:pollIntervalNanoseconds:pollTimeoutNanoseconds:providerOptions:extraBody:headers:abortSignal:) | init(data: Data, mediaType: String, filename: String? = nil, purpose: String? = nil, displayName: String? = nil, pollIntervalNanoseconds: UInt64 = 2_000_000_000, pollTimeoutNanoseconds: UInt64 = 300_000_000_000, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil) | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Initializer | init(dictionaryLiteral:) | init(dictionaryLiteral elements: (String, JSONValue)...) | Sources/SwiftAISDK/JSONValue.swift |
| Initializer | init(expiresAfterSeconds:sessionConfig:abortSignal:) | init(expiresAfterSeconds: Int? = nil, sessionConfig: AIRealtimeSessionConfiguration? = nil, abortSignal: AIAbortSignal? = nil) | Sources/SwiftAISDK/CoreRealtime.swift |
| Initializer | init(file:providerOptions:headers:abortSignal:) | init(file: [String : String], providerOptions: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil) | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Initializer | init(file:providerOptions:headers:abortSignal:) | init(file: [String : String], providerOptions: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil) | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Initializer | init(file:providerOptions:headers:abortSignal:) | init(file: [String : String], providerOptions: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil) | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Initializer | init(fileData:mediaType:filename:purpose:displayName:pollIntervalNanoseconds:pollTimeoutNanoseconds:providerOptions:extraBody:headers:abortSignal:) | init(fileData: FileUploadData, mediaType: String, filename: String? = nil, purpose: String? = nil, displayName: String? = nil, pollIntervalNanoseconds: UInt64 = 2_000_000_000, pollTimeoutNanoseconds: UInt64 = 300_000_000_000, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil) | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Initializer | init(files:displayTitle:providerOptions:headers:abortSignal:) | init(files: [SkillUploadFile], displayTitle: String? = nil, providerOptions: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil) | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Initializer | init(floatLiteral:) | init(floatLiteral value: Double) | Sources/SwiftAISDK/JSONValue.swift |
| Initializer | init(from:) | init(from decoder: any Decoder) throws | |
| Initializer | init(from:) | init(from decoder: any Decoder) throws | |
| Initializer | init(from:) | init(from decoder: any Decoder) throws | |
| Initializer | init(from:) | init(from decoder: any Decoder) throws | |
| Initializer | init(from:) | init(from decoder: any Decoder) throws | |
| Initializer | init(from:) | init(from decoder: any Decoder) throws | |
| Initializer | init(from:) | init(from decoder: any Decoder) throws | Sources/SwiftAISDK/JSONValue.swift |
| Initializer | init(id:model:instructions:executableTools:maxSteps:stopWhen:allowSystemInMessages:prepareStep:toolApproval:requestOptions:timeoutNanoseconds:streamTimeout:retryPolicy:telemetry:) | init(id: String? = nil, model: any LanguageModel, instructions: String? = nil, executableTools: [AITool] = [], maxSteps: Int = 20, stopWhen: [AIStopCondition] = [], allowSystemInMessages: Bool = false, prepareStep: AIPrepareStep? = nil, toolApproval: AIToolApproval? = nil, requestOptions: AIChatRequestOptions = AIChatRequestOptions(), timeoutNanoseconds: UInt64? = nil, streamTimeout: AIStreamTimeoutConfiguration? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) | Sources/SwiftAISDK/AIAgent.swift |
| Initializer | init(id:request:) | init(id: String, request: LanguageModelRequest) | Sources/SwiftAISDK/CoreBatch.swift |
| Initializer | init(id:request:) | init(id: String, request: LanguageModelRequest) | Sources/SwiftAISDK/CoreBatch.swift |
| Initializer | init(id:role:parts:metadata:) | init(id: String = UUID().uuidString, role: MessageRole, parts: [AIUIMessagePart] = [], metadata: [String : JSONValue] = [:]) | Sources/SwiftAISDK/CoreUIMessages.swift |
| Initializer | init(id:text:state:providerMetadata:) | init(id: String? = nil, text: String, state: AIUIStreamingPartState? = nil, providerMetadata: [String : JSONValue] = [:]) | Sources/SwiftAISDK/CoreUIMessages.swift |
| Initializer | init(id:text:state:providerMetadata:) | init(id: String? = nil, text: String, state: AIUIStreamingPartState? = nil, providerMetadata: [String : JSONValue] = [:]) | Sources/SwiftAISDK/CoreUIMessages.swift |
| Initializer | init(id:value:providerMetadata:) | init(id: String? = nil, value: JSONValue, providerMetadata: [String : JSONValue] = [:]) | Sources/SwiftAISDK/CoreUIMessages.swift |
| Initializer | init(inputTokens:outputTokens:totalTokens:inputTokensNoCache:inputTokensCacheRead:inputTokensCacheWrite:outputTextTokens:outputReasoningTokens:rawValue:) | init(inputTokens: Int? = nil, outputTokens: Int? = nil, totalTokens: Int? = nil, inputTokensNoCache: Int? = nil, inputTokensCacheRead: Int? = nil, inputTokensCacheWrite: Int? = nil, outputTextTokens: Int? = nil, outputReasoningTokens: Int? = nil, rawValue: JSONValue? = nil) | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Initializer | init(instructions:voice:outputModalities:inputAudioFormat:inputAudioTranscription:outputAudioTranscription:outputAudioFormat:turnDetection:tools:providerOptions:) | init(instructions: String? = nil, voice: String? = nil, outputModalities: [AIRealtimeOutputModality]? = nil, inputAudioFormat: AIRealtimeAudioFormat? = nil, inputAudioTranscription: AIRealtimeAudioTranscriptionConfiguration? = nil, outputAudioTranscription: AIRealtimeAudioTranscriptionConfiguration? = nil, outputAudioFormat: AIRealtimeAudioFormat? = nil, turnDetection: AIRealtimeTurnDetectionConfiguration? = nil, tools: [AIRealtimeToolDefinition]? = nil, providerOptions: [String : JSONValue]? = nil) | Sources/SwiftAISDK/CoreRealtime.swift |
| Initializer | init(integerLiteral:) | init(integerLiteral value: Int) | Sources/SwiftAISDK/JSONValue.swift |
| Initializer | init(maxRetries:initialDelayNanoseconds:backoffFactor:maxDelayNanoseconds:timeoutNanoseconds:) | init(maxRetries: Int = 2, initialDelayNanoseconds: UInt64 = 2_000_000_000, backoffFactor: Double = 2, maxDelayNanoseconds: UInt64 = 60_000_000_000, timeoutNanoseconds: UInt64? = nil) | Sources/SwiftAISDK/Core.swift |
| Initializer | init(message:type:code:statusCode:) | init(message: String, type: String? = nil, code: String? = nil, statusCode: Int? = nil) | Sources/SwiftAISDK/CoreBatch.swift |
| Initializer | init(messages:temperature:topP:topK:presencePenalty:frequencyPenalty:seed:maxOutputTokens:stopSequences:responseFormat:reasoning:tools:toolContexts:toolChoice:includeRawChunks:providerOptions:extraBody:headers:abortSignal:) | init(messages: [AIMessage], temperature: Double? = nil, topP: Double? = nil, topK: Int? = nil, presencePenalty: Double? = nil, frequencyPenalty: Double? = nil, seed: Int? = nil, maxOutputTokens: Int? = nil, stopSequences: [String] = [], responseFormat: AIResponseFormat? = nil, reasoning: String? = nil, tools: [String : JSONValue] = [:], toolContexts: [String : JSONValue] = [:], toolChoice: JSONValue? = nil, includeRawChunks: Bool = false, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil) | Sources/SwiftAISDK/CoreLanguageRequest.swift |
| Initializer | init(method:url:headers:body:abortSignal:maxResponseBytes:followRedirects:) | init(method: String = "POST", url: URL, headers: [String : String] = [:], body: Data? = nil, abortSignal: AIAbortSignal? = nil, maxResponseBytes: Int? = nil, followRedirects: Bool = true) | Sources/SwiftAISDK/HTTP.swift |
| Initializer | init(method:url:headers:body:bodyStream:cancelBodyStream:abortSignal:maxResponseBytes:followRedirects:) | init(method: String = "POST", url: URL, headers: [String : String] = [:], body: Data? = nil, bodyStream: AsyncThrowingStream<Data, any Error>? = nil, cancelBodyStream: @escaping @Sendable () async -> Void = {}, abortSignal: AIAbortSignal? = nil, maxResponseBytes: Int? = nil, followRedirects: Bool = true) | Sources/SwiftAISDK/HTTP.swift |
| Initializer | init(modalities:instructions:metadata:) | init(modalities: [String]? = nil, instructions: String? = nil, metadata: [String : JSONValue]? = nil) | Sources/SwiftAISDK/CoreRealtime.swift |
| Initializer | init(model:language:prompt:) | init(model: String? = nil, language: String? = nil, prompt: String? = nil) | Sources/SwiftAISDK/CoreRealtime.swift |
| Initializer | init(nilLiteral:) | init(nilLiteral: ()) | Sources/SwiftAISDK/JSONValue.swift |
| Initializer | init(path:data:mediaType:) | init(path: String, data: Data, mediaType: String = "application/octet-stream") | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Initializer | init(phase:durationNanoseconds:) | init(phase: AIStreamTimeoutPhase, durationNanoseconds: UInt64) | Sources/SwiftAISDK/AIStreamTimeouts.swift |
| Initializer | init(providerReference:deleted:providerMetadata:warnings:rawValue:requestMetadata:responseMetadata:) | init(providerReference: [String : String], deleted: Bool, providerMetadata: [String : JSONValue] = [:], warnings: [AIWarning] = [], rawValue: JSONValue = .null, requestMetadata: AIRequestMetadata = AIRequestMetadata(), responseMetadata: AIResponseMetadata = AIResponseMetadata()) | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Initializer | init(providerReference:displayTitle:name:description:latestVersion:providerMetadata:requestMetadata:responseMetadata:warnings:rawValue:) | init(providerReference: [String : String], displayTitle: String? = nil, name: String? = nil, description: String? = nil, latestVersion: String? = nil, providerMetadata: [String : JSONValue] = [:], requestMetadata: AIRequestMetadata = AIRequestMetadata(), responseMetadata: AIResponseMetadata = AIResponseMetadata(), warnings: [AIWarning] = [], rawValue: JSONValue) | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Initializer | init(providerReference:filename:mediaType:byteSize:createdAt:expiresAt:metadata:rawValue:warnings:providerMetadata:requestMetadata:responseMetadata:) | init(providerReference: [String : String], filename: String? = nil, mediaType: String? = nil, byteSize: Int? = nil, createdAt: Date? = nil, expiresAt: Date? = nil, metadata: [String : JSONValue] = [:], rawValue: JSONValue, warnings: [AIWarning] = [], providerMetadata: [String : JSONValue] = [:], requestMetadata: AIRequestMetadata = AIRequestMetadata(), responseMetadata: AIResponseMetadata = AIResponseMetadata()) | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Initializer | init(providerReference:filename:mediaType:byteSize:createdAt:expiresAt:providerMetadata:warnings:rawValue:requestMetadata:responseMetadata:) | init(providerReference: [String : String], filename: String? = nil, mediaType: String? = nil, byteSize: Int? = nil, createdAt: Date? = nil, expiresAt: Date? = nil, providerMetadata: [String : JSONValue] = [:], warnings: [AIWarning] = [], rawValue: JSONValue = .null, requestMetadata: AIRequestMetadata = AIRequestMetadata(), responseMetadata: AIResponseMetadata = AIResponseMetadata()) | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Initializer | init(providerReference:filename:mediaType:metadata:rawValue:warnings:providerMetadata:requestMetadata:responseMetadata:) | init(providerReference: [String : String], filename: String? = nil, mediaType: String? = nil, metadata: [String : JSONValue] = [:], rawValue: JSONValue, warnings: [AIWarning] = [], providerMetadata: [String : JSONValue] = [:], requestMetadata: AIRequestMetadata = AIRequestMetadata(), responseMetadata: AIResponseMetadata = AIResponseMetadata()) | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Initializer | init(rawTools:toolContexts:executableTools:maxSteps:stopWhen:prepareStep:approval:choice:) | init(rawTools: [String : JSONValue] = [:], toolContexts: [String : JSONValue] = [:], executableTools: [AITool] = [], maxSteps: Int = 5, stopWhen: [AIStopCondition] = [], prepareStep: AIPrepareStep? = nil, approval: AIToolApproval? = nil, choice: JSONValue? = nil) | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Initializer | init(rawValue:) | init?(rawValue: String) | |
| Initializer | init(rawValue:) | init?(rawValue: String) | |
| Initializer | init(rawValue:) | init?(rawValue: String) | |
| Initializer | init(rawValue:) | init?(rawValue: String) | |
| Initializer | init(rawValue:) | init?(rawValue: String) | |
| Initializer | init(rawValue:) | init?(rawValue: String) | |
| Initializer | init(rawValue:) | init?(rawValue: String) | |
| Initializer | init(rawValue:) | init?(rawValue: String) | |
| Initializer | init(rawValue:) | init?(rawValue: String) | |
| Initializer | init(rawValue:) | init?(rawValue: String) | |
| Initializer | init(rawValue:) | init?(rawValue: String) | |
| Initializer | init(rawValue:) | init?(rawValue: String) | |
| Initializer | init(rawValue:) | init?(rawValue: String) | |
| Initializer | init(rawValue:) | init?(rawValue: String) | |
| Initializer | init(rawValue:) | init?(rawValue: String) | |
| Initializer | init(rawValue:) | init?(rawValue: String) | |
| Initializer | init(rawValue:) | init?(rawValue: String) | |
| Initializer | init(rawValue:) | init?(rawValue: String) | |
| Initializer | init(rawValue:) | init?(rawValue: String) | |
| Initializer | init(rawValue:) | init?(rawValue: String) | |
| Initializer | init(rawValue:) | init?(rawValue: String) | |
| Initializer | init(rawValue:) | init?(rawValue: String) | |
| Initializer | init(rawValue:) | init?(rawValue: String) | |
| Initializer | init(rawValue:) | init?(rawValue: String) | |
| Initializer | init(rawValue:) | init?(rawValue: String) | |
| Initializer | init(rawValue:) | init?(rawValue: String) | |
| Initializer | init(rawValue:) | init?(rawValue: String) | |
| Initializer | init(rawValue:) | init?(rawValue: String) | |
| Initializer | init(rawValue:) | init(rawValue: String) | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Initializer | init(rawValue:) | init?(rawValue: String) | |
| Initializer | init(reason:attempts:errors:) | init(reason: AIRetryErrorReason, attempts: Int, errors: [String]) | Sources/SwiftAISDK/Core.swift |
| Initializer | init(reason:reasonName:) | init(reason: String? = nil, reasonName: String? = nil) | Sources/SwiftAISDK/CoreAbort.swift |
| Initializer | init(reference:status:) | init(reference: TextBatchReference, status: AIBatchStatus) | Sources/SwiftAISDK/CoreBatch.swift |
| Initializer | init(requestID:warning:) | init(requestID: String? = nil, warning: AIWarning) | Sources/SwiftAISDK/CoreBatch.swift |
| Initializer | init(requestOptions:abortSignal:timeoutNanoseconds:streamTimeout:retryPolicy:telemetry:) | init(requestOptions: AIChatRequestOptions = AIChatRequestOptions(), abortSignal: AIAbortSignal? = nil, timeoutNanoseconds: UInt64? = nil, streamTimeout: AIStreamTimeoutConfiguration? = nil, retryPolicy: AIRetryPolicy? = nil, telemetry: Telemetry.Options? = nil) | Sources/SwiftAISDK/AIAgent.swift |
| Initializer | init(requests:providerOptions:abortSignal:headers:idempotencyKey:) | init(requests: [Request], providerOptions: [String : JSONValue] = [:], abortSignal: AIAbortSignal? = nil, headers: [String : String] = [:], idempotencyKey: String? = nil) | Sources/SwiftAISDK/CoreBatch.swift |
| Initializer | init(requests:providerOptions:abortSignal:headers:idempotencyKey:webhookURL:) | init(requests: [Request], providerOptions: [String : JSONValue] = [:], abortSignal: AIAbortSignal? = nil, headers: [String : String] = [:], idempotencyKey: String? = nil, webhookURL: String? = nil) | Sources/SwiftAISDK/CoreBatch.swift |
| Initializer | init(role:content:reasoning:providerMetadata:) | init(role: MessageRole, content: [AIContentPart], reasoning: String? = nil, providerMetadata: [String : JSONValue] = [:]) | Sources/SwiftAISDK/CoreMessages.swift |
| Initializer | init(scope:tools:) | init(scope: AIPruneToolCalls.Scope, tools: Set<String>? = nil) | Sources/SwiftAISDK/PruneMessages.swift |
| Initializer | init(session:) | init(session: URLSession = .shared) | Sources/SwiftAISDK/HTTP.swift |
| Initializer | init(status:rawStatus:requestCounts:error:createdAt:expiresAt:providerMetadata:) | init(status: AIBatchLifecycleStatus, rawStatus: String? = nil, requestCounts: AIBatchRequestCounts? = nil, error: AIBatchError? = nil, createdAt: String? = nil, expiresAt: String? = nil, providerMetadata: [String : JSONValue] = [:]) | Sources/SwiftAISDK/CoreBatch.swift |
| Initializer | init(statusCode:headers:body:bodyAvailable:cancelBody:) | init(statusCode: Int, headers: [String : String] = [:], body: AsyncThrowingStream<Data, any Error>, bodyAvailable: Bool = true, cancelBody: @escaping @Sendable () -> Void = {}) | Sources/SwiftAISDK/HTTP.swift |
| Initializer | init(statusCode:headers:body:cancelBody:) | init(statusCode: Int, headers: [String : String] = [:], body: AsyncThrowingStream<Data, any Error>, cancelBody: @escaping @Sendable () -> Void = {}) | Sources/SwiftAISDK/HTTP.swift |
| Initializer | init(statusCode:headers:body:url:) | init(statusCode: Int, headers: [String : String] = [:], body: Data = Data(), url: URL? = nil) | Sources/SwiftAISDK/HTTP.swift |
| Initializer | init(stream:mediaType:filename:purpose:displayName:pollIntervalNanoseconds:pollTimeoutNanoseconds:providerOptions:extraBody:headers:abortSignal:) | init(stream: AsyncThrowingStream<Data, any Error>, mediaType: String, filename: String? = nil, purpose: String? = nil, displayName: String? = nil, pollIntervalNanoseconds: UInt64 = 2_000_000_000, pollTimeoutNanoseconds: UInt64 = 300_000_000_000, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil) | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Initializer | init(stringLiteral:) | init(stringLiteral value: String) | Sources/SwiftAISDK/JSONValue.swift |
| Initializer | init(stringLiteral:) | init(stringLiteral value: String) | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Initializer | init(temperature:topP:topK:presencePenalty:frequencyPenalty:seed:maxOutputTokens:stopSequences:responseFormat:reasoning:includeRawChunks:includeResponseBody:providerOptions:extraBody:headers:abortSignal:retryPolicy:telemetry:) | init(temperature: Double? = nil, topP: Double? = nil, topK: Int? = nil, presencePenalty: Double? = nil, frequencyPenalty: Double? = nil, seed: Int? = nil, maxOutputTokens: Int? = nil, stopSequences: [String] = [], responseFormat: AIResponseFormat? = nil, reasoning: String? = nil, includeRawChunks: Bool = false, includeResponseBody: Bool = false, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Initializer | init(text:content:finishReason:rawFinishReason:usage:response:providerMetadata:) | init(text: String, content: [AIResultContentPart] = [], finishReason: String? = nil, rawFinishReason: String? = nil, usage: TokenUsage = TokenUsage(), response: AIResponseMetadata? = nil, providerMetadata: [String : JSONValue] = [:]) | Sources/SwiftAISDK/CoreBatch.swift |
| Initializer | init(text:finishReason:rawFinishReason:usage:response:providerMetadata:) | init(text: String, finishReason: String? = nil, rawFinishReason: String? = nil, usage: TokenUsage = TokenUsage(), response: AIResponseMetadata? = nil, providerMetadata: [String : JSONValue] = [:]) | Sources/SwiftAISDK/CoreBatch.swift |
| Initializer | init(text:message:) | init(text: String, message: String) | Sources/SwiftAISDK/JSONParsing.swift |
| Initializer | init(token:url:expiresAt:) | init(token: String, url: String, expiresAt: Int? = nil) | Sources/SwiftAISDK/CoreRealtime.swift |
| Initializer | init(total:pending:completed:failed:) | init(total: Int, pending: Int, completed: Int, failed: Int) | Sources/SwiftAISDK/CoreBatch.swift |
| Initializer | init(totalNanoseconds:stepNanoseconds:firstChunkNanoseconds:chunkNanoseconds:) | init(totalNanoseconds: UInt64? = nil, stepNanoseconds: UInt64? = nil, firstChunkNanoseconds: UInt64? = nil, chunkNanoseconds: UInt64? = nil) | Sources/SwiftAISDK/AIStreamTimeouts.swift |
| Initializer | init(type:feature:setting:message:) | init(type: String, feature: String? = nil, setting: String? = nil, message: String? = nil) | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Initializer | init(type:name:description:parameters:) | init(type: String = "function", name: String, description: String? = nil, parameters: JSONValue) | Sources/SwiftAISDK/CoreRealtime.swift |
| Initializer | init(type:rate:) | init(type: String, rate: Int? = nil) | Sources/SwiftAISDK/CoreRealtime.swift |
| Initializer | init(type:threshold:silenceDurationMilliseconds:prefixPaddingMilliseconds:) | init(type: AIRealtimeTurnDetectionType, threshold: Double? = nil, silenceDurationMilliseconds: Int? = nil, prefixPaddingMilliseconds: Int? = nil) | Sources/SwiftAISDK/CoreRealtime.swift |
| Initializer | init(url:headers:protocols:abortSignal:) | init(url: URL, headers: [String : String] = [:], protocols: [String] = [], abortSignal: AIAbortSignal? = nil) | Sources/SwiftAISDK/DuplexWebSocketTransport.swift |
| Initializer | init(url:message:) | init(url: String, message: String) | Sources/SwiftAISDK/HTTP.swift |
| Initializer | init(url:protocols:headers:) | init(url: String, protocols: [String] = [], headers: [String : String] = [:]) | Sources/SwiftAISDK/CoreRealtime.swift |
| Initializer | init(version:type:id:providerID:modelID:) | init(version: Int = 1, type: AIBatchReferenceType = .text, id: String, providerID: String, modelID: String) | Sources/SwiftAISDK/CoreBatch.swift |
| Initializer | init(warnings:providerID:modelID:) | init(warnings: [AIWarning], providerID: String? = nil, modelID: String? = nil) | Sources/SwiftAISDK/WarningLogging.swift |
| Instance Method | abort(reason:reasonName:) | func abort(reason: String? = nil, reasonName: String? = nil) | Sources/SwiftAISDK/CoreAbort.swift |
| Instance Method | addAbortHandler(_:) | @discardableResult func addAbortHandler(_ handler: @escaping @Sendable (String?) -> Void) -> AIAbortHandlerRegistration | Sources/SwiftAISDK/CoreAbort.swift |
| Instance Method | addStream(_:) | func addStream(_ innerStream: AsyncThrowingStream<Element, any Error>) throws | Sources/SwiftAISDK/CoreUtilities.swift |
| Instance Method | appendAudio(_:) | func appendAudio(_ audio: Data) async throws | Sources/SwiftAISDK/AIRealtimeSession.swift |
| Instance Method | appendAudio(base64:) | func appendAudio(base64: String) async throws | Sources/SwiftAISDK/AIRealtimeSession.swift |
| Instance Method | buildSessionConfig(_:) | func buildSessionConfig(_ config: AIRealtimeSessionConfiguration) -> JSONValue | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Method | callAsFunction(_:) | func callAsFunction(_ modelID: String) throws -> any LanguageModel | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | cancel() | func cancel() | Sources/SwiftAISDK/CoreAbort.swift |
| Instance Method | cancel(reason:) | func cancel(reason: String? = nil) async | Sources/SwiftAISDK/AIRealtimeSession.swift |
| Instance Method | cancelBody() | func cancelBody() | Sources/SwiftAISDK/HTTP.swift |
| Instance Method | cancelRequestBody() | func cancelRequestBody() async | Sources/SwiftAISDK/HTTP.swift |
| Instance Method | cancelResponse() | func cancelResponse() async throws | Sources/SwiftAISDK/AIRealtimeSession.swift |
| Instance Method | chat(_:) | func chat(_ modelID: String) throws -> any LanguageModel | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | clearAudio() | func clearAudio() async throws | Sources/SwiftAISDK/AIRealtimeSession.swift |
| Instance Method | close() | func close() | Sources/SwiftAISDK/CoreUtilities.swift |
| Instance Method | close() | func close() async | Sources/SwiftAISDK/DuplexWebSocketTransport.swift |
| Instance Method | close(code:) | func close(code: Int) async | Sources/SwiftAISDK/DuplexWebSocketTransport.swift |
| Instance Method | close(code:reason:) | func close(code: Int = AIDuplexWebSocketCloseMetadata.normalClosure.code, reason: String? = nil) async | Sources/SwiftAISDK/AIRealtimeSession.swift |
| Instance Method | close(code:reason:) | func close(code: Int, reason: Data?) async | Sources/SwiftAISDK/DuplexWebSocketTransport.swift |
| Instance Method | commitAudio() | func commitAudio() async throws | Sources/SwiftAISDK/AIRealtimeSession.swift |
| Instance Method | connect(_:) | func connect(_ request: AIDuplexWebSocketRequest) async throws -> any AIDuplexWebSocketConnection | Sources/SwiftAISDK/DuplexWebSocketTransport.swift |
| Instance Method | connect(_:) | func connect(_ request: AIDuplexWebSocketRequest) async throws -> any AIDuplexWebSocketConnection | Sources/SwiftAISDK/DuplexWebSocketTransport.swift |
| Instance Method | createClientSecret(_:) | func createClientSecret(_ options: AIRealtimeClientSecretOptions = .init()) async throws -> AIRealtimeClientSecretResult | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Method | createResponse(options:) | func createResponse(options: AIRealtimeResponseOptions? = nil) async throws | Sources/SwiftAISDK/AIRealtimeSession.swift |
| Instance Method | deleteFile(_:) | func deleteFile(_ request: FileDeleteRequest) async throws -> FileDeleteResult | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | deleteFile(_:) | func deleteFile(_ request: FileDeleteRequest) async throws -> FileDeleteResult | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | doCreateClientSecret(_:) | func doCreateClientSecret(_ options: AIRealtimeClientSecretOptions) async throws -> AIRealtimeClientSecretResult | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Method | downloadFile(_:) | func downloadFile(_ request: FileDownloadRequest) async throws -> FileDownloadResult | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | downloadFile(_:) | func downloadFile(_ request: FileDownloadRequest) async throws -> FileDownloadResult | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | embed(_:) | func embed(_ request: EmbeddingRequest) async throws -> EmbeddingResult | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | embed(_:dimensions:providerOptions:extraBody:headers:abortSignal:retryPolicy:telemetry:) | func embed(_ value: String, dimensions: Int? = nil, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) async throws -> EmbeddingResult | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Method | embedding(_:) | func embedding(_ modelID: String) throws -> any EmbeddingModel | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | embeddingModel(_:) | func embeddingModel(_ modelID: String) throws -> any EmbeddingModel | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | embeddingModel(_:) | func embeddingModel(_ modelID: ModelID) throws -> any EmbeddingModel | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Method | embedMany(_:dimensions:chunkSize:providerOptions:extraBody:headers:abortSignal:retryPolicy:telemetry:) | func embedMany(_ values: [String], dimensions: Int? = nil, chunkSize: Int? = nil, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) async throws -> EmbeddingResult | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Method | encode(to:) | func encode(to encoder: any Encoder) throws | Sources/SwiftAISDK/JSONValue.swift |
| Instance Method | files() | func files() throws -> any AIFileClient | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | generate(_:) | func generate(_ request: LanguageModelRequest) async throws -> TextGenerationResult | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | generate(messages:) | func generate(messages: [AIMessage]) async throws -> TextGenerationResult | Sources/SwiftAISDK/AIAgent.swift |
| Instance Method | generate(messages:options:) | func generate(messages: [AIMessage], options: AIAgentCallOptions) async throws -> TextGenerationResult | Sources/SwiftAISDK/AIAgent.swift |
| Instance Method | generate(messages:options:) | func generate(messages: [AIMessage], options: AIAgentCallOptions = AIAgentCallOptions()) async throws -> TextGenerationResult | Sources/SwiftAISDK/AIAgent.swift |
| Instance Method | generate(prompt:) | func generate(prompt: String) async throws -> TextGenerationResult | Sources/SwiftAISDK/AIAgent.swift |
| Instance Method | generate(prompt:options:) | func generate(prompt: String, options: AIAgentCallOptions) async throws -> TextGenerationResult | Sources/SwiftAISDK/AIAgent.swift |
| Instance Method | generate(prompt:options:) | func generate(prompt: String, options: AIAgentCallOptions = AIAgentCallOptions()) async throws -> TextGenerationResult | Sources/SwiftAISDK/AIAgent.swift |
| Instance Method | generateAudio(_:) | func generateAudio(_ request: AudioGenerationRequest) async throws -> AudioGenerationResult | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | generateAudio(_:durationSeconds:format:seed:providerOptions:extraBody:headers:abortSignal:retryPolicy:telemetry:) | func generateAudio(_ prompt: String, durationSeconds: Double? = nil, format: String? = nil, seed: Int? = nil, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) async throws -> AudioGenerationResult | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Method | generateImage(_:) | func generateImage(_ request: ImageGenerationRequest) async throws -> ImageGenerationResult | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | generateImage(_:size:aspectRatio:seed:count:files:mask:providerOptions:extraBody:headers:abortSignal:retryPolicy:telemetry:) | func generateImage(_ prompt: String, size: String? = nil, aspectRatio: String? = nil, seed: Int? = nil, count: Int? = nil, files: [ImageInputFile] = [], mask: ImageInputFile? = nil, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) async throws -> ImageGenerationResult | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Method | generateObject(_:as:schema:schemaName:schemaDescription:options:callbacks:jsonInstruction:repairText:) | func generateObject<Object>(_ prompt: String, as type: Object.Type = Object.self, schema: JSONValue? = nil, schemaName: String? = nil, schemaDescription: String? = nil, options: LanguageGenerationOptions = .default, 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/SwiftNativeLanguageAPI.swift |
| Instance Method | generateObject(_:schema:schemaName:schemaDescription:options:callbacks:jsonInstruction:repairText:) | func generateObject<Schema>(_ prompt: String, schema: Schema, schemaName: String? = nil, schemaDescription: String? = nil, options: LanguageGenerationOptions = .default, 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/SwiftNativeLanguageAPI.swift |
| Instance Method | generateSpeech(_:voice:format:speed:language:instructions:providerOptions:extraBody:headers:abortSignal:retryPolicy:telemetry:) | func generateSpeech(_ text: String, voice: String? = nil, format: String? = nil, speed: Double? = nil, language: String? = nil, instructions: String? = nil, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) async throws -> SpeechResult | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Method | generateText(_:options:tools:) | func generateText(_ prompt: String, options: LanguageGenerationOptions = .default, tools: LanguageToolOptions = .none) async throws -> TextGenerationResult | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Method | generateText(_:output:options:jsonInstruction:repairText:) | func generateText<FinalOutput, PartialOutput>(_ prompt: String, output: AIOutput<FinalOutput, PartialOutput>, options: LanguageGenerationOptions = .default, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) async throws -> AIOutputGenerationResult<FinalOutput> where FinalOutput : Sendable, PartialOutput : Sendable | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Method | generateText(messages:options:tools:) | func generateText(messages: [AIMessage], options: LanguageGenerationOptions = .default, tools: LanguageToolOptions = .none) async throws -> TextGenerationResult | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Method | generateVideo(_:) | func generateVideo(_ request: VideoGenerationRequest) async throws -> VideoGenerationResult | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | generateVideo(_:) | func generateVideo(_ request: VideoGenerationRequest) async throws -> VideoGenerationResult | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | generateVideo(_:aspectRatio:durationSeconds:image:resolution:fps:generateAudio:seed:count:providerOptions:extraBody:headers:abortSignal:retryPolicy:telemetry:) | func generateVideo(_ prompt: String, aspectRatio: String? = nil, durationSeconds: Double? = nil, image: ImageInputFile? = nil, resolution: String? = nil, fps: Double? = nil, generateAudio: Bool? = nil, seed: Int? = nil, count: Int? = nil, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) async throws -> VideoGenerationResult | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Method | getBatchResults(_:) | func getBatchResults(_ options: AIBatchOperationOptions) async throws -> AsyncThrowingStream<AIBatchItemResult<TextGenerationResult>, any Error> | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Method | getBatchStatus(_:) | func getBatchStatus(_ options: AIBatchOperationOptions) async throws -> AIBatchStatus | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Method | getFileMetadata(_:) | func getFileMetadata(_ request: FileMetadataRequest) async throws -> FileMetadataResult | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | getFileMetadata(_:) | func getFileMetadata(_ request: FileMetadataRequest) async throws -> FileMetadataResult | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | getHealthCheckResponse(_:) | func getHealthCheckResponse(_ raw: JSONValue) async throws -> AIRealtimeWireMessage? | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Method | getHealthCheckResponse(_:) | func getHealthCheckResponse(_ raw: JSONValue) async throws -> AIRealtimeWireMessage? | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Method | getWebSocketConfig(token:url:) | func getWebSocketConfig(token: String, url: String) -> AIRealtimeWebSocketConfiguration | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Method | headerValue(_:) | func headerValue(_ name: String) -> String? | Sources/SwiftAISDK/HTTP.swift |
| Instance Method | headerValue(_:) | func headerValue(_ name: String) -> String? | Sources/SwiftAISDK/HTTP.swift |
| Instance Method | image(_:) | func image(_ modelID: String) throws -> any ImageModel | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | imageModel(_:) | func imageModel(_ modelID: String) throws -> any ImageModel | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | imageModel(_:) | func imageModel(_ modelID: ModelID) throws -> any ImageModel | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Method | jsonValue() | func jsonValue() throws -> JSONValue | Sources/SwiftAISDK/HTTP.swift |
| Instance Method | languageModel(_:) | func languageModel(_ modelID: String) throws -> any LanguageModel | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | languageModel(_:) | func languageModel(_ modelID: ModelID) throws -> any LanguageModel | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Method | logWarnings(_:) | func logWarnings(_ event: AIWarningLogEvent) async | Sources/SwiftAISDK/WarningLogging.swift |
| Instance Method | logWarnings(_:) | func logWarnings(_ event: AIWarningLogEvent) async | Sources/SwiftAISDK/WarningLogging.swift |
| Instance Method | makeAsyncIterator() | func makeAsyncIterator() -> AIRealtimeSession.AsyncIterator | Sources/SwiftAISDK/AIRealtimeSession.swift |
| Instance Method | parseServerEvent(_:) | func parseServerEvent(_ raw: JSONValue) -> [AIRealtimeServerEvent] | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Method | parseServerEvent(_:) | func parseServerEvent(_ raw: JSONValue) -> [AIRealtimeServerEvent] | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Method | reject(_:) | func reject(_ error: any Error) | Sources/SwiftAISDK/CoreDelayedPromise.swift |
| Instance Method | request(messages:tools:) | func request(messages: [AIMessage], tools: LanguageToolOptions = .none) -> LanguageModelRequest | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Method | rerank(_:) | func rerank(_ request: RerankingRequest) async throws -> RerankingResult | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | rerank(query:documents:topK:providerOptions:extraBody:headers:abortSignal:retryPolicy:telemetry:) | func rerank(query: String, documents: [String], topK: Int? = nil, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) async throws -> RerankingResult | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Method | reranking(_:) | func reranking(_ modelID: String) throws -> any RerankingModel | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | rerankingModel(_:) | func rerankingModel(_ modelID: String) throws -> any RerankingModel | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | rerankingModel(_:) | func rerankingModel(_ modelID: ModelID) throws -> any RerankingModel | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Method | resolve(_:) | func resolve(_ value: Value) | Sources/SwiftAISDK/CoreDelayedPromise.swift |
| Instance Method | run(_:) | func run(_ job: @escaping @Sendable () async throws -> Void) -> Task<Void, any Error> | Sources/SwiftAISDK/CoreSerialJobExecutor.swift |
| Instance Method | send(_:) | func send(_ event: AIRealtimeClientEvent) async throws | Sources/SwiftAISDK/AIRealtimeSession.swift |
| Instance Method | send(_:) | func send(_ message: AIDuplexWebSocketMessage) async throws | Sources/SwiftAISDK/DuplexWebSocketTransport.swift |
| Instance Method | send(_:) | func send(_ request: AIHTTPRequest) async throws -> AIHTTPResponse | Sources/SwiftAISDK/HTTP.swift |
| Instance Method | send(_:) | func send(_ request: AIHTTPRequest) async throws -> AIHTTPResponse | Sources/SwiftAISDK/HTTP.swift |
| Instance Method | send(binary:) | func send(binary: Data) async throws | Sources/SwiftAISDK/DuplexWebSocketTransport.swift |
| Instance Method | send(text:) | func send(text: String) async throws | Sources/SwiftAISDK/DuplexWebSocketTransport.swift |
| Instance Method | sendAudioMessage(_:) | func sendAudioMessage(_ audio: Data) async throws | Sources/SwiftAISDK/AIRealtimeSession.swift |
| Instance Method | sendFunctionCallOutput(callID:name:output:) | func sendFunctionCallOutput(callID: String, name: String? = nil, output: String) async throws | Sources/SwiftAISDK/AIRealtimeSession.swift |
| Instance Method | sendText(_:) | func sendText(_ text: String) async throws | Sources/SwiftAISDK/AIRealtimeSession.swift |
| Instance Method | serializeClientEvent(_:) | func serializeClientEvent(_ event: AIRealtimeClientEvent) async throws -> AIRealtimeWireMessage? | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Method | skills() | func skills() throws -> any AISkillsClient | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | speak(_:) | func speak(_ request: SpeechRequest) async throws -> SpeechResult | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | speech(_:) | func speech(_ modelID: String) throws -> any SpeechModel | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | speechModel(_:) | func speechModel(_ modelID: String) throws -> any SpeechModel | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | speechModel(_:) | func speechModel(_ modelID: ModelID) throws -> any SpeechModel | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Method | startBatch(_:) | func startBatch(_ options: AIBatchStartOptions<AILanguageModelBatchRequest>) async throws -> AIBatchStartResult | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Method | stream(_:) | func stream(_ request: LanguageModelRequest) -> AsyncThrowingStream<LanguageStreamPart, any Error> | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | stream(_:) | func stream(_ request: LanguageModelRequest) -> AsyncThrowingStream<LanguageStreamPart, any Error> | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | stream(_:) | func stream(_ request: AIHTTPRequest) async throws -> AIHTTPStreamResponse | Sources/SwiftAISDK/HTTP.swift |
| Instance Method | stream(_:) | func stream(_ request: AIHTTPRequest) async throws -> AIHTTPStreamResponse | Sources/SwiftAISDK/HTTP.swift |
| Instance Method | stream(messages:) | func stream(messages: [AIMessage]) -> AsyncThrowingStream<LanguageStreamPart, any Error> | Sources/SwiftAISDK/AIAgent.swift |
| Instance Method | stream(messages:options:) | func stream(messages: [AIMessage], options: AIAgentCallOptions) -> AsyncThrowingStream<LanguageStreamPart, any Error> | Sources/SwiftAISDK/AIAgent.swift |
| Instance Method | stream(messages:options:) | func stream(messages: [AIMessage], options: AIAgentCallOptions = AIAgentCallOptions()) -> AsyncThrowingStream<LanguageStreamPart, any Error> | Sources/SwiftAISDK/AIAgent.swift |
| Instance Method | stream(prompt:) | func stream(prompt: String) -> AsyncThrowingStream<LanguageStreamPart, any Error> | Sources/SwiftAISDK/AIAgent.swift |
| Instance Method | stream(prompt:options:) | func stream(prompt: String, options: AIAgentCallOptions) -> AsyncThrowingStream<LanguageStreamPart, any Error> | Sources/SwiftAISDK/AIAgent.swift |
| Instance Method | stream(prompt:options:) | func stream(prompt: String, options: AIAgentCallOptions = AIAgentCallOptions()) -> AsyncThrowingStream<LanguageStreamPart, any Error> | Sources/SwiftAISDK/AIAgent.swift |
| Instance Method | streamText(_:options:tools:timeoutNanoseconds:) | func streamText(_ prompt: String, options: LanguageGenerationOptions = .default, tools: LanguageToolOptions = .none, timeoutNanoseconds: UInt64? = nil) -> AsyncThrowingStream<LanguageStreamPart, any Error> | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Method | streamText(_:output:options:timeoutNanoseconds:jsonInstruction:repairText:) | func streamText<FinalOutput, PartialOutput>(_ prompt: String, output: AIOutput<FinalOutput, PartialOutput>, options: LanguageGenerationOptions = .default, timeoutNanoseconds: UInt64? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) -> AsyncThrowingStream<AIOutputStreamPart<FinalOutput, PartialOutput>, any Error> where FinalOutput : Sendable, PartialOutput : Sendable | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Method | streamText(messages:options:tools:timeoutNanoseconds:) | func streamText(messages: [AIMessage], options: LanguageGenerationOptions = .default, tools: LanguageToolOptions = .none, timeoutNanoseconds: UInt64? = nil) -> AsyncThrowingStream<LanguageStreamPart, any Error> | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Method | terminate() | func terminate() | Sources/SwiftAISDK/CoreUtilities.swift |
| Instance Method | test(_:) | func test(_ url: String) -> Bool | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | textEmbedding(_:) | func textEmbedding(_ modelID: String) throws -> any EmbeddingModel | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | textEmbeddingModel(_:) | func textEmbeddingModel(_ modelID: String) throws -> any EmbeddingModel | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | throwIfAborted() | func throwIfAborted() throws | Sources/SwiftAISDK/CoreAbort.swift |
| Instance Method | toCustomToolName(_:) | func toCustomToolName(_ providerToolName: String) -> String | Sources/SwiftAISDK/CoreUtilities.swift |
| Instance Method | toProviderToolName(_:) | func toProviderToolName(_ customToolName: String) -> String | Sources/SwiftAISDK/CoreUtilities.swift |
| Instance Method | transcribe(_:) | func transcribe(_ request: AudioTranscriptionRequest) async throws -> TranscriptionResult | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | transcribe(audio:fileName:mimeType:language:prompt:providerOptions:extraBody:headers:abortSignal:retryPolicy:telemetry:) | func transcribe(audio: Data, fileName: String = "audio.wav", mimeType: String = "audio/wav", language: String? = nil, prompt: String? = nil, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) async throws -> TranscriptionResult | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Method | transcription(_:) | func transcription(_ modelID: String) throws -> any TranscriptionModel | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | transcriptionModel(_:) | func transcriptionModel(_ modelID: String) throws -> any TranscriptionModel | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | transcriptionModel(_:) | func transcriptionModel(_ modelID: ModelID) throws -> any TranscriptionModel | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Method | transformAudio(_:) | func transformAudio(_ request: AudioTransformationRequest) async throws -> AudioTransformationResult | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | transformAudio(audio:fileName:mimeType:voice:format:providerOptions:extraBody:headers:abortSignal:retryPolicy:telemetry:) | func transformAudio(audio: Data, fileName: String = "audio.wav", mimeType: String = "audio/wav", voice: String? = nil, format: String? = nil, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) async throws -> AudioTransformationResult | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Method | uploadFile(_:) | func uploadFile(_ request: FileUploadRequest) async throws -> FileUploadResult | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | uploadSkill(_:) | func uploadSkill(_ request: SkillUploadRequest) async throws -> SkillUploadResult | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | value() | func value() async throws -> Value | Sources/SwiftAISDK/CoreDelayedPromise.swift |
| Instance Method | video(_:) | func video(_ modelID: String) throws -> any VideoModel | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | videoModel(_:) | func videoModel(_ modelID: String) throws -> any VideoModel | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Method | videoModel(_:) | func videoModel(_ modelID: ModelID) throws -> any VideoModel | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Method | waitUntilAborted() | func waitUntilAborted() async -> String? | Sources/SwiftAISDK/CoreAbort.swift |
| Instance Property | abortSignal | var abortSignal: AIAbortSignal? | Sources/SwiftAISDK/AIAgent.swift |
| Instance Property | abortSignal | var abortSignal: AIAbortSignal? | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | abortSignal | var abortSignal: AIAbortSignal? | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | abortSignal | var abortSignal: AIAbortSignal? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | abortSignal | var abortSignal: AIAbortSignal? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | abortSignal | var abortSignal: AIAbortSignal? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | abortSignal | var abortSignal: AIAbortSignal? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | abortSignal | var abortSignal: AIAbortSignal? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | abortSignal | var abortSignal: AIAbortSignal? | Sources/SwiftAISDK/CoreLanguageRequest.swift |
| Instance Property | abortSignal | var abortSignal: AIAbortSignal? | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | abortSignal | var abortSignal: AIAbortSignal? | Sources/SwiftAISDK/DuplexWebSocketTransport.swift |
| Instance Property | abortSignal | var abortSignal: AIAbortSignal? | Sources/SwiftAISDK/HTTP.swift |
| Instance Property | abortSignal | var abortSignal: AIAbortSignal? | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Property | allowSystemInMessages | var allowSystemInMessages: Bool | Sources/SwiftAISDK/AIAgent.swift |
| Instance Property | approval | var approval: AIToolApproval? | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Property | attempts | var attempts: Int | Sources/SwiftAISDK/Core.swift |
| Instance Property | backoffFactor | var backoffFactor: Double | Sources/SwiftAISDK/Core.swift |
| Instance Property | batch | var batch: TextBatch | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | batchID | var batchID: String | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | batchID | var batchID: String | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | body | var body: Data? | Sources/SwiftAISDK/HTTP.swift |
| Instance Property | body | var body: Data | Sources/SwiftAISDK/HTTP.swift |
| Instance Property | body | var body: AsyncThrowingStream<Data, any Error> | Sources/SwiftAISDK/HTTP.swift |
| Instance Property | bodyAvailable | var bodyAvailable: Bool | Sources/SwiftAISDK/HTTP.swift |
| Instance Property | bodyStream | var bodyStream: AsyncThrowingStream<Data, any Error>? | Sources/SwiftAISDK/HTTP.swift |
| Instance Property | bodyText | var bodyText: String { get } | Sources/SwiftAISDK/HTTP.swift |
| Instance Property | boolValue | var boolValue: Bool? { get } | Sources/SwiftAISDK/JSONValue.swift |
| Instance Property | bufferedData | var bufferedData: Data? { get } | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | byteCount | var byteCount: Int? { get } | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | byteSize | var byteSize: Int? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | byteSize | var byteSize: Int? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | choice | var choice: JSONValue? | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Property | chunkNanoseconds | var chunkNanoseconds: UInt64? | Sources/SwiftAISDK/AIStreamTimeouts.swift |
| Instance Property | clientSecretExpiresAt | let clientSecretExpiresAt: Int? | Sources/SwiftAISDK/AIRealtimeSession.swift |
| Instance Property | code | var code: String? | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | code | var code: Int | Sources/SwiftAISDK/DuplexWebSocketTransport.swift |
| Instance Property | combinedText | var combinedText: String { get } | Sources/SwiftAISDK/CoreMessages.swift |
| Instance Property | completed | var completed: Int | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | content | var content: [AIResultContentPart] | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | content | var content: AsyncThrowingStream<Data, any Error> | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | content | var content: [AIContentPart] | Sources/SwiftAISDK/CoreMessages.swift |
| Instance Property | createdAt | var createdAt: String? | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | createdAt | var createdAt: Date? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | createdAt | var createdAt: Date? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | data | var data: Data { get set } | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | data | var data: Data | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | deleted | var deleted: Bool | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | description | var description: String { get } | Sources/SwiftAISDK/AIRealtimeSession.swift |
| Instance Property | description | var description: String { get } | Sources/SwiftAISDK/AIStreamTimeouts.swift |
| Instance Property | description | var description: String { get } | Sources/SwiftAISDK/Core.swift |
| Instance Property | description | var description: String { get } | Sources/SwiftAISDK/Core.swift |
| Instance Property | description | var description: String { get } | Sources/SwiftAISDK/CoreAbort.swift |
| Instance Property | description | var description: String { get } | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | description | var description: String? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | description | var description: String? | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | description | var description: String { get } | Sources/SwiftAISDK/HTTP.swift |
| Instance Property | description | var description: String { get } | Sources/SwiftAISDK/JSONParsing.swift |
| Instance Property | description | var description: String { get } | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Property | displayName | var displayName: String? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | displayTitle | var displayTitle: String? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | displayTitle | var displayTitle: String? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | doubleValue | var doubleValue: Double? { get } | Sources/SwiftAISDK/JSONValue.swift |
| Instance Property | durationNanoseconds | var durationNanoseconds: UInt64 | Sources/SwiftAISDK/AIStreamTimeouts.swift |
| Instance Property | error | var error: AIBatchError? | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | errorDescription | var errorDescription: String? | Sources/SwiftAISDK/JSONParsing.swift |
| Instance Property | errors | var errors: [String] | Sources/SwiftAISDK/Core.swift |
| Instance Property | events | let events: AsyncThrowingStream<AIRealtimeSessionEvent, any Error> | Sources/SwiftAISDK/AIRealtimeSession.swift |
| Instance Property | events | var events: AsyncThrowingStream<AIDuplexWebSocketEvent, any Error> { get } | Sources/SwiftAISDK/DuplexWebSocketTransport.swift |
| Instance Property | executableTools | var executableTools: [AITool] { get } | Sources/SwiftAISDK/AIAgent.swift |
| Instance Property | executableTools | var executableTools: [AITool] | Sources/SwiftAISDK/AIAgent.swift |
| Instance Property | executableTools | var executableTools: [AITool] | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Property | expiresAfterSeconds | var expiresAfterSeconds: Int? | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | expiresAt | var expiresAt: String? | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | expiresAt | var expiresAt: Date? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | expiresAt | var expiresAt: Date? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | expiresAt | var expiresAt: Int? | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | extraBody | var extraBody: [String : JSONValue] | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | extraBody | var extraBody: [String : JSONValue] | Sources/SwiftAISDK/CoreLanguageRequest.swift |
| Instance Property | extraBody | var extraBody: [String : JSONValue] | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Property | failed | var failed: Int | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | feature | var feature: String? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | file | var file: [String : String] | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | file | var file: [String : String] | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | file | var file: [String : String] | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | fileData | var fileData: FileUploadData | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | filename | var filename: String? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | filename | var filename: String? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | filename | var filename: String? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | filePayload | var filePayload: (mimeType: String, data: Data, filename: String?)? { get } | Sources/SwiftAISDK/CoreMessages.swift |
| Instance Property | files | var files: [SkillUploadFile] | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | finishReason | var finishReason: String? | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | firstChunkNanoseconds | var firstChunkNanoseconds: UInt64? | Sources/SwiftAISDK/AIStreamTimeouts.swift |
| Instance Property | followRedirects | var followRedirects: Bool | Sources/SwiftAISDK/HTTP.swift |
| Instance Property | frequencyPenalty | var frequencyPenalty: Double? | Sources/SwiftAISDK/CoreLanguageRequest.swift |
| Instance Property | frequencyPenalty | var frequencyPenalty: Double? | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Property | headers | var headers: [String : String] | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | headers | var headers: [String : String] | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | headers | var headers: [String : String] | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | headers | var headers: [String : String] | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | headers | var headers: [String : String] | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | headers | var headers: [String : String] | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | headers | var headers: [String : String] | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | headers | var headers: [String : String] | Sources/SwiftAISDK/CoreLanguageRequest.swift |
| Instance Property | headers | var headers: [String : String] | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | headers | var headers: [String : String] | Sources/SwiftAISDK/DuplexWebSocketTransport.swift |
| Instance Property | headers | var headers: [String : String] | Sources/SwiftAISDK/HTTP.swift |
| Instance Property | headers | var headers: [String : String] | Sources/SwiftAISDK/HTTP.swift |
| Instance Property | headers | var headers: [String : String] | Sources/SwiftAISDK/HTTP.swift |
| Instance Property | headers | var headers: [String : String] | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Property | id | var id: String? { get } | Sources/SwiftAISDK/AIAgent.swift |
| Instance Property | id | var id: String? | Sources/SwiftAISDK/AIAgent.swift |
| Instance Property | id | var id: String { get } | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | id | var id: String | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | id | var id: String | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | id | var id: String | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | id | var id: String { get } | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | id | var id: String? | Sources/SwiftAISDK/CoreUIMessages.swift |
| Instance Property | id | var id: String? | Sources/SwiftAISDK/CoreUIMessages.swift |
| Instance Property | id | var id: String? | Sources/SwiftAISDK/CoreUIMessages.swift |
| Instance Property | id | var id: String | Sources/SwiftAISDK/CoreUIMessages.swift |
| Instance Property | idempotencyKey | var idempotencyKey: String? | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | includeRawChunks | var includeRawChunks: Bool | Sources/SwiftAISDK/CoreLanguageRequest.swift |
| Instance Property | includeRawChunks | var includeRawChunks: Bool | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Property | includeResponseBody | var includeResponseBody: Bool | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Property | initialDelayNanoseconds | var initialDelayNanoseconds: UInt64 | Sources/SwiftAISDK/Core.swift |
| Instance Property | inputAudioFormat | var inputAudioFormat: AIRealtimeAudioFormat? | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | inputAudioTranscription | var inputAudioTranscription: AIRealtimeAudioTranscriptionConfiguration? | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | inputTokens | var inputTokens: Int? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | inputTokensCacheRead | var inputTokensCacheRead: Int? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | inputTokensCacheWrite | var inputTokensCacheWrite: Int? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | inputTokensNoCache | var inputTokensNoCache: Int? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | instructions | var instructions: String? | Sources/SwiftAISDK/AIAgent.swift |
| Instance Property | instructions | var instructions: String? | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | instructions | var instructions: String? | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | intValue | var intValue: Int? { get } | Sources/SwiftAISDK/JSONValue.swift |
| Instance Property | isAborted | var isAborted: Bool { get } | Sources/SwiftAISDK/CoreAbort.swift |
| Instance Property | isPending | var isPending: Bool { get } | Sources/SwiftAISDK/CoreDelayedPromise.swift |
| Instance Property | isRejected | var isRejected: Bool { get } | Sources/SwiftAISDK/CoreDelayedPromise.swift |
| Instance Property | isResolved | var isResolved: Bool { get } | Sources/SwiftAISDK/CoreDelayedPromise.swift |
| Instance Property | isStream | var isStream: Bool { get } | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | language | var language: String? | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | latestVersion | var latestVersion: String? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | maxDelayNanoseconds | var maxDelayNanoseconds: UInt64 | Sources/SwiftAISDK/Core.swift |
| Instance Property | maxEmbeddingsPerCall | var maxEmbeddingsPerCall: Int? { get } | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Property | maxEmbeddingsPerCall | var maxEmbeddingsPerCall: Int? { get } | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Property | maxInputBytesPerCall | var maxInputBytesPerCall: Int? { get } | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Property | maxInputBytesPerCall | var maxInputBytesPerCall: Int? { get } | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Property | maxOutputTokens | var maxOutputTokens: Int? | Sources/SwiftAISDK/CoreLanguageRequest.swift |
| Instance Property | maxOutputTokens | var maxOutputTokens: Int? | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Property | maxResponseBytes | var maxResponseBytes: Int? | Sources/SwiftAISDK/HTTP.swift |
| Instance Property | maxRetries | var maxRetries: Int | Sources/SwiftAISDK/Core.swift |
| Instance Property | maxSteps | var maxSteps: Int | Sources/SwiftAISDK/AIAgent.swift |
| Instance Property | maxSteps | var maxSteps: Int | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Property | mediaType | var mediaType: String | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | mediaType | var mediaType: String? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | mediaType | var mediaType: String? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | mediaType | var mediaType: String? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | mediaType | var mediaType: String | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | message | var message: String | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | message | var message: String? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | message | var message: String | Sources/SwiftAISDK/HTTP.swift |
| Instance Property | message | var message: String | Sources/SwiftAISDK/JSONParsing.swift |
| Instance Property | messages | var messages: [AIMessage] | Sources/SwiftAISDK/CoreLanguageRequest.swift |
| Instance Property | metadata | var metadata: [String : JSONValue] | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | metadata | var metadata: [String : JSONValue]? | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | metadata | var metadata: [String : JSONValue] | Sources/SwiftAISDK/CoreUIMessages.swift |
| Instance Property | method | var method: String | Sources/SwiftAISDK/HTTP.swift |
| Instance Property | modalities | var modalities: [String]? | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | model | var model: any LanguageModel | Sources/SwiftAISDK/AIAgent.swift |
| Instance Property | model | var model: String? | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | modelID | let modelID: String | Sources/SwiftAISDK/AIRealtimeSession.swift |
| Instance Property | modelID | var modelID: String | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | modelID | var modelID: String { get } | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Property | modelID | var modelID: String { get } | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Property | modelID | var modelID: String { get } | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Property | modelID | var modelID: String { get } | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Property | modelID | var modelID: String { get } | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Property | modelID | var modelID: String { get } | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Property | modelID | var modelID: String { get } | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Property | modelID | var modelID: String { get } | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Property | modelID | var modelID: String { get } | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Property | modelID | var modelID: String { get } | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | modelID | var modelID: String? | Sources/SwiftAISDK/WarningLogging.swift |
| Instance Property | name | var name: String? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | name | var name: String | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | objectValue | var objectValue: [String : JSONValue]? { get } | Sources/SwiftAISDK/JSONValue.swift |
| Instance Property | outputAudioFormat | var outputAudioFormat: AIRealtimeAudioFormat? | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | outputAudioTranscription | var outputAudioTranscription: AIRealtimeAudioTranscriptionConfiguration? | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | outputModalities | var outputModalities: [AIRealtimeOutputModality]? | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | outputReasoningTokens | var outputReasoningTokens: Int? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | outputTextTokens | var outputTextTokens: Int? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | outputTokens | var outputTokens: Int? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | parameters | var parameters: JSONValue | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | parts | var parts: [AIUIMessagePart] | Sources/SwiftAISDK/CoreUIMessages.swift |
| Instance Property | path | var path: String | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | pending | var pending: Int | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | phase | var phase: AIStreamTimeoutPhase | Sources/SwiftAISDK/AIStreamTimeouts.swift |
| Instance Property | pollIntervalNanoseconds | var pollIntervalNanoseconds: UInt64 | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | pollTimeoutNanoseconds | var pollTimeoutNanoseconds: UInt64 | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | prefixPaddingMilliseconds | var prefixPaddingMilliseconds: Int? | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | prepareStep | var prepareStep: AIPrepareStep? | Sources/SwiftAISDK/AIAgent.swift |
| Instance Property | prepareStep | var prepareStep: AIPrepareStep? | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Property | presencePenalty | var presencePenalty: Double? | Sources/SwiftAISDK/CoreLanguageRequest.swift |
| Instance Property | presencePenalty | var presencePenalty: Double? | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Property | prompt | var prompt: String? | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | protocols | var protocols: [String] | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | protocols | var protocols: [String] | Sources/SwiftAISDK/DuplexWebSocketTransport.swift |
| Instance Property | provider | var provider: String { get } | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | providerID | let providerID: String | Sources/SwiftAISDK/AIRealtimeSession.swift |
| Instance Property | providerID | var providerID: String | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | providerID | var providerID: String { get } | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Property | providerID | var providerID: String { get } | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Property | providerID | var providerID: String { get } | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Property | providerID | var providerID: String { get } | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Property | providerID | var providerID: String { get } | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Property | providerID | var providerID: String { get } | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Property | providerID | var providerID: String { get } | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Property | providerID | var providerID: String { get } | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Property | providerID | var providerID: String { get } | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Property | providerID | var providerID: String { get } | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Property | providerID | var providerID: String { get } | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Property | providerID | var providerID: String { get } | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Property | providerID | var providerID: String { get } | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | providerID | var providerID: String? | Sources/SwiftAISDK/WarningLogging.swift |
| Instance Property | providerMetadata | var providerMetadata: [String : JSONValue] | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | providerMetadata | var providerMetadata: [String : JSONValue] | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | providerMetadata | var providerMetadata: [String : JSONValue] | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | providerMetadata | var providerMetadata: [String : JSONValue] | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | providerMetadata | var providerMetadata: [String : JSONValue] | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | providerMetadata | var providerMetadata: [String : JSONValue] | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | providerMetadata | var providerMetadata: [String : JSONValue] | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | providerMetadata | var providerMetadata: [String : JSONValue] | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | providerMetadata | var providerMetadata: [String : JSONValue] | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | providerMetadata | var providerMetadata: [String : JSONValue] { get } | Sources/SwiftAISDK/CoreMessages.swift |
| Instance Property | providerMetadata | var providerMetadata: [String : JSONValue] | Sources/SwiftAISDK/CoreMessages.swift |
| Instance Property | providerMetadata | var providerMetadata: [String : JSONValue] | Sources/SwiftAISDK/CoreUIMessages.swift |
| Instance Property | providerMetadata | var providerMetadata: [String : JSONValue] | Sources/SwiftAISDK/CoreUIMessages.swift |
| Instance Property | providerMetadata | var providerMetadata: [String : JSONValue] | Sources/SwiftAISDK/CoreUIMessages.swift |
| Instance Property | providerOptions | var providerOptions: [String : JSONValue] | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | providerOptions | var providerOptions: [String : JSONValue] | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | providerOptions | var providerOptions: [String : JSONValue] | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | providerOptions | var providerOptions: [String : JSONValue] | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | providerOptions | var providerOptions: [String : JSONValue] | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | providerOptions | var providerOptions: [String : JSONValue] | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | providerOptions | var providerOptions: [String : JSONValue] | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | providerOptions | var providerOptions: [String : JSONValue] | Sources/SwiftAISDK/CoreLanguageRequest.swift |
| Instance Property | providerOptions | var providerOptions: [String : JSONValue]? | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | providerOptions | var providerOptions: [String : JSONValue] | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Property | providerReference | var providerReference: [String : String] | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | providerReference | var providerReference: [String : String] | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | providerReference | var providerReference: [String : String] | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | providerReference | var providerReference: [String : String] | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | purpose | var purpose: String? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | rate | var rate: Int? | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | rawFinishReason | var rawFinishReason: String? | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | rawStatus | var rawStatus: String? | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | rawTools | var rawTools: [String : JSONValue] | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Property | rawValue | var rawValue: JSONValue | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | rawValue | var rawValue: JSONValue | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | rawValue | var rawValue: JSONValue | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | rawValue | var rawValue: JSONValue | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | rawValue | var rawValue: JSONValue? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | rawValue | var rawValue: JSONValue? | Sources/SwiftAISDK/JSONParsing.swift |
| Instance Property | rawValue | var rawValue: String | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Property | reason | var reason: AIRetryErrorReason | Sources/SwiftAISDK/Core.swift |
| Instance Property | reason | var reason: String? | Sources/SwiftAISDK/CoreAbort.swift |
| Instance Property | reason | var reason: String? { get } | Sources/SwiftAISDK/CoreAbort.swift |
| Instance Property | reason | var reason: String? | Sources/SwiftAISDK/DuplexWebSocketTransport.swift |
| Instance Property | reasoning | var reasoning: String? | Sources/SwiftAISDK/CoreLanguageRequest.swift |
| Instance Property | reasoning | var reasoning: String? | Sources/SwiftAISDK/CoreMessages.swift |
| Instance Property | reasoning | var reasoning: String { get } | Sources/SwiftAISDK/CoreUIMessages.swift |
| Instance Property | reasoning | var reasoning: String? | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Property | reasonName | var reasonName: String? | Sources/SwiftAISDK/CoreAbort.swift |
| Instance Property | reasonName | var reasonName: String? { get } | Sources/SwiftAISDK/CoreAbort.swift |
| Instance Property | reference | var reference: TextBatchReference | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | request | var request: LanguageModelRequest | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | request | var request: LanguageModelRequest | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | requestCounts | var requestCounts: AIBatchRequestCounts? | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | requestID | var requestID: String? | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | requestMetadata | var requestMetadata: AIRequestMetadata | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | requestMetadata | var requestMetadata: AIRequestMetadata | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | requestMetadata | var requestMetadata: AIRequestMetadata | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | requestMetadata | var requestMetadata: AIRequestMetadata | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | requestMetadata | var requestMetadata: AIRequestMetadata | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | requestOptions | var requestOptions: AIChatRequestOptions | Sources/SwiftAISDK/AIAgent.swift |
| Instance Property | requestOptions | var requestOptions: AIChatRequestOptions | Sources/SwiftAISDK/AIAgent.swift |
| Instance Property | requests | var requests: [Request] | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | response | var response: AIResponseMetadata? | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | responseFormat | var responseFormat: AIResponseFormat? | Sources/SwiftAISDK/CoreLanguageRequest.swift |
| Instance Property | responseFormat | var responseFormat: AIResponseFormat? | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Property | responseMetadata | var responseMetadata: AIResponseMetadata | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | responseMetadata | var responseMetadata: AIResponseMetadata | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | responseMetadata | var responseMetadata: AIResponseMetadata | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | responseMetadata | var responseMetadata: AIResponseMetadata | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | responseMetadata | var responseMetadata: AIResponseMetadata | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | retryPolicy | var retryPolicy: AIRetryPolicy? | Sources/SwiftAISDK/AIAgent.swift |
| Instance Property | retryPolicy | var retryPolicy: AIRetryPolicy | Sources/SwiftAISDK/AIAgent.swift |
| Instance Property | retryPolicy | var retryPolicy: AIRetryPolicy | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Property | role | var role: MessageRole | Sources/SwiftAISDK/CoreMessages.swift |
| Instance Property | role | var role: MessageRole | Sources/SwiftAISDK/CoreUIMessages.swift |
| Instance Property | scope | var scope: AIPruneToolCalls.Scope | Sources/SwiftAISDK/PruneMessages.swift |
| Instance Property | seed | var seed: Int? | Sources/SwiftAISDK/CoreLanguageRequest.swift |
| Instance Property | seed | var seed: Int? | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Property | sessionConfig | var sessionConfig: AIRealtimeSessionConfiguration? | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | setting | var setting: String? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | signal | let signal: AIAbortSignal | Sources/SwiftAISDK/CoreAbort.swift |
| Instance Property | silenceDurationMilliseconds | var silenceDurationMilliseconds: Int? | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | specificationVersion | var specificationVersion: String { get } | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | specificationVersion | var specificationVersion: String { get } | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | state | var state: AIUIStreamingPartState? | Sources/SwiftAISDK/CoreUIMessages.swift |
| Instance Property | state | var state: AIUIStreamingPartState? | Sources/SwiftAISDK/CoreUIMessages.swift |
| Instance Property | status | var status: AIBatchLifecycleStatus | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | status | var status: AIBatchStatus | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | status | var status: AIBatchStatus | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | statusCode | var statusCode: Int? | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | statusCode | var statusCode: Int | Sources/SwiftAISDK/HTTP.swift |
| Instance Property | statusCode | var statusCode: Int | Sources/SwiftAISDK/HTTP.swift |
| Instance Property | stepNanoseconds | var stepNanoseconds: UInt64? | Sources/SwiftAISDK/AIStreamTimeouts.swift |
| Instance Property | stopSequences | var stopSequences: [String] | Sources/SwiftAISDK/CoreLanguageRequest.swift |
| Instance Property | stopSequences | var stopSequences: [String] | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Property | stopWhen | var stopWhen: [AIStopCondition] | Sources/SwiftAISDK/AIAgent.swift |
| Instance Property | stopWhen | var stopWhen: [AIStopCondition] | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Property | stream | let stream: AsyncThrowingStream<Element, any Error> | Sources/SwiftAISDK/CoreUtilities.swift |
| Instance Property | streamTimeout | var streamTimeout: AIStreamTimeoutConfiguration? | Sources/SwiftAISDK/AIAgent.swift |
| Instance Property | streamTimeout | var streamTimeout: AIStreamTimeoutConfiguration? | Sources/SwiftAISDK/AIAgent.swift |
| Instance Property | stringValue | var stringValue: String? { get } | Sources/SwiftAISDK/JSONValue.swift |
| Instance Property | success | var success: Bool { get } | Sources/SwiftAISDK/JSONParsing.swift |
| Instance Property | supportedCapabilities | var supportedCapabilities: Set<ModelCapability> { get } | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Property | supportedFileOperations | var supportedFileOperations: Set<AIFileOperation> { get } | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Property | supportedFileOperations | var supportedFileOperations: Set<AIFileOperation> { get } | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Property | supportedURLs | var supportedURLs: [String : [AISupportedURLPattern]] { get } | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Property | supportedURLs | var supportedURLs: [String : [AISupportedURLPattern]] { get } | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Property | supportsUnaryVideoGeneration | var supportsUnaryVideoGeneration: Bool { get } | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Property | supportsUnaryVideoGeneration | var supportsUnaryVideoGeneration: Bool { get } | Sources/SwiftAISDK/CoreProtocols.swift |
| Instance Property | telemetry | var telemetry: Telemetry.Options? | Sources/SwiftAISDK/AIAgent.swift |
| Instance Property | telemetry | var telemetry: Telemetry.Options? | Sources/SwiftAISDK/AIAgent.swift |
| Instance Property | telemetry | var telemetry: Telemetry.Options? | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Property | temperature | var temperature: Double? | Sources/SwiftAISDK/CoreLanguageRequest.swift |
| Instance Property | temperature | var temperature: Double? | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Property | text | var text: String | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | text | var text: String? { get } | Sources/SwiftAISDK/CoreMessages.swift |
| Instance Property | text | var text: String | Sources/SwiftAISDK/CoreUIMessages.swift |
| Instance Property | text | var text: String | Sources/SwiftAISDK/CoreUIMessages.swift |
| Instance Property | text | var text: String { get } | Sources/SwiftAISDK/CoreUIMessages.swift |
| Instance Property | text | var text: String | Sources/SwiftAISDK/JSONParsing.swift |
| Instance Property | threshold | var threshold: Double? | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | timeoutNanoseconds | var timeoutNanoseconds: UInt64? | Sources/SwiftAISDK/AIAgent.swift |
| Instance Property | timeoutNanoseconds | var timeoutNanoseconds: UInt64? | Sources/SwiftAISDK/AIAgent.swift |
| Instance Property | timeoutNanoseconds | var timeoutNanoseconds: UInt64? | Sources/SwiftAISDK/Core.swift |
| Instance Property | token | var token: String | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | toolApproval | var toolApproval: AIToolApproval? | Sources/SwiftAISDK/AIAgent.swift |
| Instance Property | toolChoice | var toolChoice: JSONValue? | Sources/SwiftAISDK/CoreLanguageRequest.swift |
| Instance Property | toolContexts | var toolContexts: [String : JSONValue] | Sources/SwiftAISDK/CoreLanguageRequest.swift |
| Instance Property | toolContexts | var toolContexts: [String : JSONValue] | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Property | tools | var tools: [String : JSONValue] | Sources/SwiftAISDK/CoreLanguageRequest.swift |
| Instance Property | tools | var tools: [AIRealtimeToolDefinition]? | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | tools | var tools: Set<String>? | Sources/SwiftAISDK/PruneMessages.swift |
| Instance Property | topK | var topK: Int? | Sources/SwiftAISDK/CoreLanguageRequest.swift |
| Instance Property | topK | var topK: Int? | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Property | topP | var topP: Double? | Sources/SwiftAISDK/CoreLanguageRequest.swift |
| Instance Property | topP | var topP: Double? | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Property | total | var total: Int | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | totalNanoseconds | var totalNanoseconds: UInt64? | Sources/SwiftAISDK/AIStreamTimeouts.swift |
| Instance Property | totalTokens | var totalTokens: Int? | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | turnDetection | var turnDetection: AIRealtimeTurnDetectionConfiguration? | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | type | var type: String? | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | type | let type: AIBatchReferenceType | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | type | var type: String | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | type | var type: String | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | type | var type: AIRealtimeTurnDetectionType | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | type | var type: String | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | url | var url: String | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | url | var url: String | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | url | var url: URL | Sources/SwiftAISDK/DuplexWebSocketTransport.swift |
| Instance Property | url | var url: URL | Sources/SwiftAISDK/HTTP.swift |
| Instance Property | url | var url: String | Sources/SwiftAISDK/HTTP.swift |
| Instance Property | url | var url: URL? | Sources/SwiftAISDK/HTTP.swift |
| Instance Property | usage | var usage: TokenUsage | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | usesToolLoop | var usesToolLoop: Bool { get } | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Instance Property | value | var value: JSONValue | Sources/SwiftAISDK/CoreUIMessages.swift |
| Instance Property | value | var value: JSONValue? | Sources/SwiftAISDK/JSONParsing.swift |
| Instance Property | version | var version: String { get } | Sources/SwiftAISDK/AIAgent.swift |
| Instance Property | version | var version: String { get } | Sources/SwiftAISDK/AIAgent.swift |
| Instance Property | version | let version: Int | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | voice | var voice: String? | Sources/SwiftAISDK/CoreRealtime.swift |
| Instance Property | warning | var warning: AIWarning | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | warnings | var warnings: [AIBatchWarning] | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | warnings | var warnings: [AIBatchWarning] | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Property | warnings | var warnings: [AIWarning] | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | warnings | var warnings: [AIWarning] | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | warnings | var warnings: [AIWarning] | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | warnings | var warnings: [AIWarning] | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | warnings | var warnings: [AIWarning] | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Instance Property | warnings | var warnings: [AIWarning] | Sources/SwiftAISDK/WarningLogging.swift |
| Instance Property | webhookURL | var webhookURL: String? | Sources/SwiftAISDK/CoreBatch.swift |
| Instance Subscript | subscript(_:) | subscript(key: String) -> JSONValue? { get } | Sources/SwiftAISDK/JSONValue.swift |
| Instance Subscript | subscript(_:) | subscript(index: Int) -> JSONValue? { get } | Sources/SwiftAISDK/JSONValue.swift |
| Operator | ==(_:_:) | static func == (lhs: AIRealtimeClientSecretOptions, rhs: AIRealtimeClientSecretOptions) -> Bool | Sources/SwiftAISDK/CoreRealtime.swift |
| Protocol | AIAgent | protocol AIAgent : Sendable | Sources/SwiftAISDK/AIAgent.swift |
| Protocol | AIDuplexWebSocketConnection | protocol AIDuplexWebSocketConnection : Sendable | Sources/SwiftAISDK/DuplexWebSocketTransport.swift |
| Protocol | AIDuplexWebSocketTransport | protocol AIDuplexWebSocketTransport : Sendable | Sources/SwiftAISDK/DuplexWebSocketTransport.swift |
| Protocol | AIFileClient | protocol AIFileClient : Sendable | Sources/SwiftAISDK/CoreProtocols.swift |
| Protocol | AIFileProvider | protocol AIFileProvider : AIProvider | Sources/SwiftAISDK/CoreProtocols.swift |
| Protocol | AIProvider | protocol AIProvider : Sendable | Sources/SwiftAISDK/CoreProtocols.swift |
| Protocol | AIRealtimeModelV4 | protocol AIRealtimeModelV4 : Sendable | Sources/SwiftAISDK/CoreRealtime.swift |
| Protocol | AISkillsClient | protocol AISkillsClient : Sendable | Sources/SwiftAISDK/CoreProtocols.swift |
| Protocol | AISkillsProvider | protocol AISkillsProvider : AIProvider | Sources/SwiftAISDK/CoreProtocols.swift |
| Protocol | AIStreamingTransport | protocol AIStreamingTransport : AITransport | Sources/SwiftAISDK/HTTP.swift |
| Protocol | AITransport | protocol AITransport : Sendable | Sources/SwiftAISDK/HTTP.swift |
| Protocol | AIWarningLogger | protocol AIWarningLogger : Sendable | Sources/SwiftAISDK/WarningLogging.swift |
| Protocol | AudioGenerationModel | protocol AudioGenerationModel : Sendable | Sources/SwiftAISDK/CoreProtocols.swift |
| Protocol | AudioTransformationModel | protocol AudioTransformationModel : Sendable | Sources/SwiftAISDK/CoreProtocols.swift |
| Protocol | BatchLanguageModel | protocol BatchLanguageModel : LanguageModel | Sources/SwiftAISDK/CoreBatch.swift |
| Protocol | EmbeddingModel | protocol EmbeddingModel : Sendable | Sources/SwiftAISDK/CoreProtocols.swift |
| Protocol | ImageModel | protocol ImageModel : Sendable | Sources/SwiftAISDK/CoreProtocols.swift |
| Protocol | LanguageModel | protocol LanguageModel : Sendable | Sources/SwiftAISDK/CoreProtocols.swift |
| Protocol | RerankingModel | protocol RerankingModel : Sendable | Sources/SwiftAISDK/CoreProtocols.swift |
| Protocol | SpeechModel | protocol SpeechModel : Sendable | Sources/SwiftAISDK/CoreProtocols.swift |
| Protocol | TranscriptionModel | protocol TranscriptionModel : Sendable | Sources/SwiftAISDK/CoreProtocols.swift |
| Protocol | VideoModel | protocol VideoModel : Sendable | Sources/SwiftAISDK/CoreProtocols.swift |
| Structure | AIAbortError | struct AIAbortError | Sources/SwiftAISDK/CoreAbort.swift |
| Structure | AIAgentCallOptions | struct AIAgentCallOptions | Sources/SwiftAISDK/AIAgent.swift |
| Structure | AIBatchError | struct AIBatchError | Sources/SwiftAISDK/CoreBatch.swift |
| Structure | AIBatchOperationOptions | struct AIBatchOperationOptions | Sources/SwiftAISDK/CoreBatch.swift |
| Structure | AIBatchRequestCounts | struct AIBatchRequestCounts | Sources/SwiftAISDK/CoreBatch.swift |
| Structure | AIBatchStartOptions | struct AIBatchStartOptions<Request> where Request : Sendable | Sources/SwiftAISDK/CoreBatch.swift |
| Structure | AIBatchStartResult | struct AIBatchStartResult | Sources/SwiftAISDK/CoreBatch.swift |
| Structure | AIBatchStatus | struct AIBatchStatus | Sources/SwiftAISDK/CoreBatch.swift |
| Structure | AIBatchWarning | struct AIBatchWarning | Sources/SwiftAISDK/CoreBatch.swift |
| Structure | AIConsoleWarningLogger | struct AIConsoleWarningLogger | Sources/SwiftAISDK/WarningLogging.swift |
| Structure | AIDownloadError | struct AIDownloadError | Sources/SwiftAISDK/HTTP.swift |
| Structure | AIDuplexWebSocketCloseMetadata | struct AIDuplexWebSocketCloseMetadata | Sources/SwiftAISDK/DuplexWebSocketTransport.swift |
| Structure | AIDuplexWebSocketRequest | struct AIDuplexWebSocketRequest | Sources/SwiftAISDK/DuplexWebSocketTransport.swift |
| Structure | AIHTTPRequest | struct AIHTTPRequest | Sources/SwiftAISDK/HTTP.swift |
| Structure | AIHTTPResponse | struct AIHTTPResponse | Sources/SwiftAISDK/HTTP.swift |
| Structure | AIHTTPStreamResponse | struct AIHTTPStreamResponse | Sources/SwiftAISDK/HTTP.swift |
| Structure | AIJSONParseError | struct AIJSONParseError | Sources/SwiftAISDK/JSONParsing.swift |
| Structure | AIJSONParseResult | struct AIJSONParseResult | Sources/SwiftAISDK/JSONParsing.swift |
| Structure | AILanguageModelBatchRequest | struct AILanguageModelBatchRequest | Sources/SwiftAISDK/CoreBatch.swift |
| Structure | AIMessage | struct AIMessage | Sources/SwiftAISDK/CoreMessages.swift |
| Structure | AIPruneToolCalls | struct AIPruneToolCalls | Sources/SwiftAISDK/PruneMessages.swift |
| Structure | AIRealtimeAudioFormat | struct AIRealtimeAudioFormat | Sources/SwiftAISDK/CoreRealtime.swift |
| Structure | AIRealtimeAudioTranscriptionConfiguration | struct AIRealtimeAudioTranscriptionConfiguration | Sources/SwiftAISDK/CoreRealtime.swift |
| Structure | AIRealtimeClientSecretOptions | struct AIRealtimeClientSecretOptions | Sources/SwiftAISDK/CoreRealtime.swift |
| Structure | AIRealtimeClientSecretResult | struct AIRealtimeClientSecretResult | Sources/SwiftAISDK/CoreRealtime.swift |
| Structure | AIRealtimeResponseOptions | struct AIRealtimeResponseOptions | Sources/SwiftAISDK/CoreRealtime.swift |
| Structure | AIRealtimeSessionConfiguration | struct AIRealtimeSessionConfiguration | Sources/SwiftAISDK/CoreRealtime.swift |
| Structure | AIRealtimeToolDefinition | struct AIRealtimeToolDefinition | Sources/SwiftAISDK/CoreRealtime.swift |
| Structure | AIRealtimeTurnDetectionConfiguration | struct AIRealtimeTurnDetectionConfiguration | Sources/SwiftAISDK/CoreRealtime.swift |
| Structure | AIRealtimeWebSocketConfiguration | struct AIRealtimeWebSocketConfiguration | Sources/SwiftAISDK/CoreRealtime.swift |
| Structure | AIRetryError | struct AIRetryError | Sources/SwiftAISDK/Core.swift |
| Structure | AIRetryPolicy | struct AIRetryPolicy | Sources/SwiftAISDK/Core.swift |
| Structure | AIStitchableStream | struct AIStitchableStream<Element> where Element : Sendable | Sources/SwiftAISDK/CoreUtilities.swift |
| Structure | AIStreamTimeoutConfiguration | struct AIStreamTimeoutConfiguration | Sources/SwiftAISDK/AIStreamTimeouts.swift |
| Structure | AIStreamTimeoutError | struct AIStreamTimeoutError | Sources/SwiftAISDK/AIStreamTimeouts.swift |
| Structure | AISupportedURLPattern | struct AISupportedURLPattern | Sources/SwiftAISDK/CoreProtocols.swift |
| Structure | AIToolLoopAgent | struct AIToolLoopAgent | Sources/SwiftAISDK/AIAgent.swift |
| Structure | AIToolNameMapping | struct AIToolNameMapping | Sources/SwiftAISDK/CoreUtilities.swift |
| Structure | AIUIDataPart | struct AIUIDataPart | Sources/SwiftAISDK/CoreUIMessages.swift |
| Structure | AIUIMessage | struct AIUIMessage | Sources/SwiftAISDK/CoreUIMessages.swift |
| Structure | AIUIReasoningPart | struct AIUIReasoningPart | Sources/SwiftAISDK/CoreUIMessages.swift |
| Structure | AIUITextPart | struct AIUITextPart | Sources/SwiftAISDK/CoreUIMessages.swift |
| Structure | AIWarning | struct AIWarning | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Structure | AIWarningLogEvent | struct AIWarningLogEvent | Sources/SwiftAISDK/WarningLogging.swift |
| Structure | FileDeleteRequest | struct FileDeleteRequest | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Structure | FileDeleteResult | struct FileDeleteResult | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Structure | FileDownloadRequest | struct FileDownloadRequest | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Structure | FileDownloadResult | struct FileDownloadResult | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Structure | FileMetadataRequest | struct FileMetadataRequest | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Structure | FileMetadataResult | struct FileMetadataResult | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Structure | FileUploadRequest | struct FileUploadRequest | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Structure | FileUploadResult | struct FileUploadResult | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Structure | LanguageGenerationOptions | struct LanguageGenerationOptions | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Structure | LanguageModelRequest | struct LanguageModelRequest | Sources/SwiftAISDK/CoreLanguageRequest.swift |
| Structure | LanguageToolOptions | struct LanguageToolOptions | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Structure | ModelID | struct ModelID | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Structure | SkillUploadFile | struct SkillUploadFile | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Structure | SkillUploadRequest | struct SkillUploadRequest | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Structure | SkillUploadResult | struct SkillUploadResult | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Structure | StartTextBatchResult | struct StartTextBatchResult | Sources/SwiftAISDK/CoreBatch.swift |
| Structure | TextBatch | struct TextBatch | Sources/SwiftAISDK/CoreBatch.swift |
| Structure | TextBatchGenerationResult | struct TextBatchGenerationResult | Sources/SwiftAISDK/CoreBatch.swift |
| Structure | TextBatchReference | struct TextBatchReference | Sources/SwiftAISDK/CoreBatch.swift |
| Structure | TextBatchRequest | struct TextBatchRequest | Sources/SwiftAISDK/CoreBatch.swift |
| Structure | TokenUsage | struct TokenUsage | Sources/SwiftAISDK/CoreFileSkillResults.swift |
| Type Alias | AICallback | typealias AICallback<Event> = @Sendable (Event) async throws -> Void | Sources/SwiftAISDK/CoreUtilities.swift |
| Type Alias | AIIdGenerator | typealias AIIdGenerator = @Sendable () -> String | Sources/SwiftAISDK/CoreUtilities.swift |
| Type Alias | AIRealtimeSession.AsyncIterator | typealias AsyncIterator = AsyncThrowingStream<AIRealtimeSessionEvent, any Error>.Iterator | Sources/SwiftAISDK/AIRealtimeSession.swift |
| Type Alias | AIRealtimeSession.Element | typealias Element = AIRealtimeSessionEvent | Sources/SwiftAISDK/AIRealtimeSession.swift |
| Type Alias | AISmoothStreamChunkDetector | typealias AISmoothStreamChunkDetector = @Sendable (String) throws -> String? | Sources/SwiftAISDK/CoreUtilities.swift |
| Type Alias | Experimental_RealtimeModelV4 | typealias Experimental_RealtimeModelV4 = AIRealtimeModelV4 | Sources/SwiftAISDK/CoreRealtime.swift |
| Type Alias | Experimental_RealtimeModelV4ClientEvent | typealias Experimental_RealtimeModelV4ClientEvent = AIRealtimeClientEvent | Sources/SwiftAISDK/CoreRealtime.swift |
| Type Alias | Experimental_RealtimeModelV4ClientSecretOptions | typealias Experimental_RealtimeModelV4ClientSecretOptions = AIRealtimeClientSecretOptions | Sources/SwiftAISDK/CoreRealtime.swift |
| Type Alias | Experimental_RealtimeModelV4ClientSecretResult | typealias Experimental_RealtimeModelV4ClientSecretResult = AIRealtimeClientSecretResult | Sources/SwiftAISDK/CoreRealtime.swift |
| Type Alias | Experimental_RealtimeModelV4ServerEvent | typealias Experimental_RealtimeModelV4ServerEvent = AIRealtimeServerEvent | Sources/SwiftAISDK/CoreRealtime.swift |
| Type Alias | Experimental_RealtimeModelV4SessionConfig | typealias Experimental_RealtimeModelV4SessionConfig = AIRealtimeSessionConfiguration | Sources/SwiftAISDK/CoreRealtime.swift |
| Type Method | all(tools:) | static func all(tools: Set<String>? = nil) -> AIPruneToolCalls | Sources/SwiftAISDK/PruneMessages.swift |
| Type Method | array(_:) | static func array(_ values: [String]) -> JSONValue | Sources/SwiftAISDK/JSONValue.swift |
| Type Method | assistant(_:reasoning:) | static func assistant(_ text: String, reasoning: String? = nil) -> AIMessage | Sources/SwiftAISDK/CoreMessages.swift |
| Type Method | assistant(id:parts:metadata:) | static func assistant(id: String = UUID().uuidString, parts: [AIUIMessagePart] = [], metadata: [String : JSONValue] = [:]) -> AIUIMessage | Sources/SwiftAISDK/CoreUIMessages.swift |
| Type Method | assistant(text:reasoning:toolCalls:toolApprovalRequests:) | static func assistant(text: String = "", reasoning: String? = nil, toolCalls: [AIToolCall], toolApprovalRequests: [AIToolApprovalRequest] = []) -> AIMessage | Sources/SwiftAISDK/CoreMessages.swift |
| Type Method | beforeLastMessage(tools:) | static func beforeLastMessage(tools: Set<String>? = nil) -> AIPruneToolCalls | Sources/SwiftAISDK/PruneMessages.swift |
| Type Method | beforeLastMessages(_:tools:) | static func beforeLastMessages(_ count: Int, tools: Set<String>? = nil) -> AIPruneToolCalls | Sources/SwiftAISDK/PruneMessages.swift |
| Type Method | connect(model:clientSecret:sessionConfiguration:webSocketTransport:abortSignal:) | static func connect(model: any AIRealtimeModelV4, clientSecret: AIRealtimeClientSecretResult, sessionConfiguration: AIRealtimeSessionConfiguration = .init(), webSocketTransport: any AIDuplexWebSocketTransport = URLSessionDuplexWebSocketTransport.shared, abortSignal: AIAbortSignal? = nil) async throws -> AIRealtimeSession | Sources/SwiftAISDK/AIRealtimeSession.swift |
| Type Method | connect(model:sessionConfiguration:clientSecretOptions:webSocketTransport:abortSignal:) | static func connect(model: any AIRealtimeModelV4, sessionConfiguration: AIRealtimeSessionConfiguration = .init(), clientSecretOptions: AIRealtimeClientSecretOptions = .init(), webSocketTransport: any AIDuplexWebSocketTransport = URLSessionDuplexWebSocketTransport.shared, abortSignal: AIAbortSignal? = nil) async throws -> AIRealtimeSession | Sources/SwiftAISDK/AIRealtimeSession.swift |
| Type Method | disable() | static func disable() | Sources/SwiftAISDK/WarningLogging.swift |
| Type Method | embed(_:using:dimensions:providerOptions:extraBody:headers:abortSignal:retryPolicy:telemetry:) | static func embed(_ value: String, using model: any EmbeddingModel, dimensions: Int? = nil, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) async throws -> EmbeddingResult | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Type Method | embed(model:provider:request:retryPolicy:telemetry:) | static func embed(model modelID: String, provider: (any AIProvider)? = nil, request: EmbeddingRequest, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) async throws -> EmbeddingResult | Sources/SwiftAISDK/AIModelResolution.swift |
| Type Method | embed(model:provider:value:dimensions:providerOptions:extraBody:headers:retryPolicy:telemetry:) | static func embed(model modelID: String, provider: (any AIProvider)? = nil, value: String, dimensions: Int? = nil, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) async throws -> EmbeddingResult | Sources/SwiftAISDK/AIModelResolution.swift |
| Type Method | embedMany(_:using:dimensions:chunkSize:providerOptions:extraBody:headers:abortSignal:retryPolicy:telemetry:) | static func embedMany(_ values: [String], using model: any EmbeddingModel, dimensions: Int? = nil, chunkSize: Int? = nil, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) async throws -> EmbeddingResult | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Type Method | embedMany(model:provider:values:dimensions:chunkSize:providerOptions:extraBody:headers:retryPolicy:telemetry:) | static func embedMany(model modelID: String, provider: (any AIProvider)? = nil, values: [String], dimensions: Int? = nil, chunkSize: Int? = nil, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) async throws -> EmbeddingResult | Sources/SwiftAISDK/AIModelResolution.swift |
| Type Method | failure(error:rawValue:) | static func failure(error: any Error, rawValue: JSONValue?) -> AIJSONParseResult | Sources/SwiftAISDK/JSONParsing.swift |
| Type Method | formattedMessage(for:providerID:modelID:) | static func formattedMessage(for warning: AIWarning, providerID: String? = nil, modelID: String? = nil) -> String | Sources/SwiftAISDK/WarningLogging.swift |
| Type Method | generateAudio(_:using:durationSeconds:format:seed:providerOptions:extraBody:headers:abortSignal:retryPolicy:telemetry:) | static func generateAudio(_ prompt: String, using model: any AudioGenerationModel, durationSeconds: Double? = nil, format: String? = nil, seed: Int? = nil, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) async throws -> AudioGenerationResult | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Type Method | generateEnum(model:provider:request:values:schemaName:schemaDescription:retryPolicy:telemetry:callbacks:jsonInstruction:repairText:) | static func generateEnum(model modelID: String, provider: (any AIProvider)? = nil, 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/AIModelResolution.swift |
| Type Method | generateImage(_:using:size:aspectRatio:seed:count:files:mask:providerOptions:extraBody:headers:abortSignal:retryPolicy:telemetry:) | static func generateImage(_ prompt: String, using model: any ImageModel, size: String? = nil, aspectRatio: String? = nil, seed: Int? = nil, count: Int? = nil, files: [ImageInputFile] = [], mask: ImageInputFile? = nil, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) async throws -> ImageGenerationResult | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Type Method | generateImage(model:provider:prompt:size:aspectRatio:seed:count:files:mask:providerOptions:extraBody:headers:retryPolicy:telemetry:) | static func generateImage(model modelID: String, provider: (any AIProvider)? = nil, prompt: String, size: String? = nil, aspectRatio: String? = nil, seed: Int? = nil, count: Int? = nil, files: [ImageInputFile] = [], mask: ImageInputFile? = nil, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) async throws -> ImageGenerationResult | Sources/SwiftAISDK/AIModelResolution.swift |
| Type Method | generateImage(model:provider:request:retryPolicy:telemetry:) | static func generateImage(model modelID: String, provider: (any AIProvider)? = nil, request: ImageGenerationRequest, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) async throws -> ImageGenerationResult | Sources/SwiftAISDK/AIModelResolution.swift |
| Type Method | generateJSON(model:provider:request:schemaName:schemaDescription:retryPolicy:telemetry:callbacks:jsonInstruction:repairText:) | static func generateJSON(model modelID: String, provider: (any AIProvider)? = nil, 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/AIModelResolution.swift |
| Type Method | generateObject(_:using:as:schema:schemaName:schemaDescription:options:callbacks:jsonInstruction:repairText:) | static func generateObject<Object>(_ prompt: String, using model: any LanguageModel, as type: Object.Type = Object.self, schema: JSONValue? = nil, schemaName: String? = nil, schemaDescription: String? = nil, options: LanguageGenerationOptions = .default, 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/SwiftNativeLanguageAPI.swift |
| Type Method | generateObject(_:using:schema:schemaName:schemaDescription:options:callbacks:jsonInstruction:repairText:) | static func generateObject<Schema>(_ prompt: String, using model: any LanguageModel, schema: Schema, schemaName: String? = nil, schemaDescription: String? = nil, options: LanguageGenerationOptions = .default, 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/SwiftNativeLanguageAPI.swift |
| Type Method | generateObject(model:provider:request:as:schema:schemaName:schemaDescription:retryPolicy:telemetry:callbacks:jsonInstruction:repairText:) | static func generateObject<Object>(model modelID: String, provider: (any AIProvider)? = nil, 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/AIModelResolution.swift |
| Type Method | generateObjectArray(model:provider:request:as:elementSchema:schemaName:schemaDescription:retryPolicy:telemetry:callbacks:jsonInstruction:repairText:) | static func generateObjectArray<Element>(model modelID: String, provider: (any AIProvider)? = nil, 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/AIModelResolution.swift |
| Type Method | generateSpeech(_:using:voice:format:speed:language:instructions:providerOptions:extraBody:headers:abortSignal:retryPolicy:telemetry:) | static func generateSpeech(_ text: String, using model: any SpeechModel, voice: String? = nil, format: String? = nil, speed: Double? = nil, language: String? = nil, instructions: String? = nil, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) async throws -> SpeechResult | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Type Method | generateSpeech(model:provider:request:retryPolicy:telemetry:) | static func generateSpeech(model modelID: String, provider: (any AIProvider)? = nil, request: SpeechRequest, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) async throws -> SpeechResult | Sources/SwiftAISDK/AIModelResolution.swift |
| Type Method | generateText(_:using:options:tools:) | static func generateText(_ prompt: String, using model: any LanguageModel, options: LanguageGenerationOptions = .default, tools: LanguageToolOptions = .none) async throws -> TextGenerationResult | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Type Method | generateText(_:using:output:options:jsonInstruction:repairText:) | static func generateText<FinalOutput, PartialOutput>(_ prompt: String, using model: any LanguageModel, output: AIOutput<FinalOutput, PartialOutput>, options: LanguageGenerationOptions = .default, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) async throws -> AIOutputGenerationResult<FinalOutput> where FinalOutput : Sendable, PartialOutput : Sendable | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Type Method | generateText(messages:using:options:tools:) | static func generateText(messages: [AIMessage], using model: any LanguageModel, options: LanguageGenerationOptions = .default, tools: LanguageToolOptions = .none) async throws -> TextGenerationResult | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Type Method | generateText(model:prompt:output:executableTools:maxSteps:stopWhen:prepareStep:toolApproval:toolApprovalSecret:repairToolCall:temperature:topP:topK:presencePenalty:frequencyPenalty:seed:maxOutputTokens:stopSequences:reasoning:providerOptions:extraBody:headers:abortSignal:retryPolicy:telemetry:jsonInstruction:repairText:) | static func generateText<FinalOutput, PartialOutput>(model: any LanguageModel, prompt: String, output: AIOutput<FinalOutput, PartialOutput>, executableTools: [AITool], maxSteps: Int = 5, stopWhen: [AIStopCondition] = [], prepareStep: AIPrepareStep? = nil, toolApproval: AIToolApproval? = nil, toolApprovalSecret: String? = nil, repairToolCall: AIToolCallRepair? = 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] = [:], abortSignal: AIAbortSignal? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) async throws -> AIOutputGenerationResult<FinalOutput?> where FinalOutput : Sendable, PartialOutput : Sendable | Sources/SwiftAISDK/AIFacadeGenerateText.swift |
| Type Method | generateText(model:prompt:output:temperature:topP:topK:presencePenalty:frequencyPenalty:seed:maxOutputTokens:stopSequences:reasoning:providerOptions:extraBody:headers:abortSignal:retryPolicy:telemetry:jsonInstruction:repairText:) | static func generateText<FinalOutput, PartialOutput>(model: any LanguageModel, prompt: String, output: AIOutput<FinalOutput, PartialOutput>, 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] = [:], abortSignal: AIAbortSignal? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) async throws -> AIOutputGenerationResult<FinalOutput> where FinalOutput : Sendable, PartialOutput : Sendable | Sources/SwiftAISDK/AIFacadeGenerateText.swift |
| Type Method | generateText(model:prompt:temperature:topP:topK:presencePenalty:frequencyPenalty:seed:maxOutputTokens:stopSequences:responseFormat:reasoning:tools:executableTools:maxSteps:stopWhen:prepareStep:toolApproval:toolApprovalSecret:repairToolCall:retryPolicy:toolChoice:includeRawChunks:includeResponseBody:providerOptions:extraBody:headers:abortSignal:telemetry:) | static func generateText(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] = [], responseFormat: AIResponseFormat? = nil, reasoning: String? = nil, tools: [String : JSONValue] = [:], executableTools: [AITool] = [], maxSteps: Int = 5, stopWhen: [AIStopCondition] = [], prepareStep: AIPrepareStep? = nil, toolApproval: AIToolApproval? = nil, toolApprovalSecret: String? = nil, repairToolCall: AIToolCallRepair? = nil, retryPolicy: AIRetryPolicy = .default, toolChoice: JSONValue? = nil, includeRawChunks: Bool = false, includeResponseBody: Bool = false, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil, telemetry: Telemetry.Options? = nil) async throws -> TextGenerationResult | Sources/SwiftAISDK/AIFacadeGenerateText.swift |
| Type Method | generateText(model:provider:prompt:temperature:topP:topK:presencePenalty:frequencyPenalty:seed:maxOutputTokens:stopSequences:responseFormat:reasoning:tools:executableTools:maxSteps:stopWhen:prepareStep:toolApproval:toolApprovalSecret:retryPolicy:toolChoice:includeRawChunks:providerOptions:extraBody:headers:abortSignal:telemetry:) | static func generateText(model modelID: String, provider: (any AIProvider)? = nil, 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] = [], responseFormat: AIResponseFormat? = nil, reasoning: String? = nil, tools: [String : JSONValue] = [:], executableTools: [AITool] = [], maxSteps: Int = 5, stopWhen: [AIStopCondition] = [], prepareStep: AIPrepareStep? = nil, toolApproval: AIToolApproval? = nil, toolApprovalSecret: String? = nil, retryPolicy: AIRetryPolicy = .default, toolChoice: JSONValue? = nil, includeRawChunks: Bool = false, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil, telemetry: Telemetry.Options? = nil) async throws -> TextGenerationResult | Sources/SwiftAISDK/AIModelResolution.swift |
| Type Method | generateText(model:provider:request:executableTools:maxSteps:stopWhen:prepareStep:toolApproval:toolApprovalSecret:retryPolicy:telemetry:) | static func generateText(model modelID: String, provider: (any AIProvider)? = nil, request: LanguageModelRequest, executableTools: [AITool], maxSteps: Int = 5, stopWhen: [AIStopCondition] = [], prepareStep: AIPrepareStep? = nil, toolApproval: AIToolApproval? = nil, toolApprovalSecret: String? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) async throws -> TextGenerationResult | Sources/SwiftAISDK/AIModelResolution.swift |
| Type Method | generateText(model:provider:request:retryPolicy:telemetry:) | static func generateText(model modelID: String, provider: (any AIProvider)? = nil, request: LanguageModelRequest, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) async throws -> TextGenerationResult | Sources/SwiftAISDK/AIModelResolution.swift |
| Type Method | generateText(model:request:executableTools:maxSteps:stopWhen:prepareStep:toolApproval:toolApprovalSecret:repairToolCall:retryPolicy:telemetry:includeResponseBody:) | static func generateText(model: any LanguageModel, request: LanguageModelRequest, executableTools: [AITool], maxSteps: Int = 5, stopWhen: [AIStopCondition] = [], prepareStep: AIPrepareStep? = nil, toolApproval: AIToolApproval? = nil, toolApprovalSecret: String? = nil, repairToolCall: AIToolCallRepair? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, includeResponseBody: Bool = false) async throws -> TextGenerationResult | Sources/SwiftAISDK/AIFacadeGenerateText.swift |
| Type Method | generateText(model:request:output:executableTools:maxSteps:stopWhen:prepareStep:toolApproval:toolApprovalSecret:repairToolCall:retryPolicy:telemetry:jsonInstruction:repairText:) | static func generateText<FinalOutput, PartialOutput>(model: any LanguageModel, request: LanguageModelRequest, output: AIOutput<FinalOutput, PartialOutput>, executableTools: [AITool], maxSteps: Int = 5, stopWhen: [AIStopCondition] = [], prepareStep: AIPrepareStep? = nil, toolApproval: AIToolApproval? = nil, toolApprovalSecret: String? = nil, repairToolCall: AIToolCallRepair? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) async throws -> AIOutputGenerationResult<FinalOutput?> where FinalOutput : Sendable, PartialOutput : Sendable | Sources/SwiftAISDK/AIFacadeGenerateText.swift |
| Type Method | generateText(model:request:output:retryPolicy:telemetry:jsonInstruction:repairText:) | static func generateText<FinalOutput, PartialOutput>(model: any LanguageModel, request: LanguageModelRequest, output: AIOutput<FinalOutput, PartialOutput>, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) async throws -> AIOutputGenerationResult<FinalOutput> where FinalOutput : Sendable, PartialOutput : Sendable | Sources/SwiftAISDK/AIFacadeGenerateText.swift |
| Type Method | generateText(model:request:retryPolicy:telemetry:includeResponseBody:) | static func generateText(model: any LanguageModel, request: LanguageModelRequest, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, includeResponseBody: Bool = false) async throws -> TextGenerationResult | Sources/SwiftAISDK/AIFacadeGenerateText.swift |
| Type Method | generateVideo(_:using:aspectRatio:durationSeconds:image:resolution:fps:generateAudio:seed:count:providerOptions:extraBody:headers:abortSignal:retryPolicy:telemetry:) | static func generateVideo(_ prompt: String, using model: any VideoModel, aspectRatio: String? = nil, durationSeconds: Double? = nil, image: ImageInputFile? = nil, resolution: String? = nil, fps: Double? = nil, generateAudio: Bool? = nil, seed: Int? = nil, count: Int? = nil, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) async throws -> VideoGenerationResult | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Type Method | generateVideo(model:provider:request:retryPolicy:telemetry:) | static func generateVideo(model modelID: String, provider: (any AIProvider)? = nil, request: VideoGenerationRequest, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) async throws -> VideoGenerationResult | Sources/SwiftAISDK/AIModelResolution.swift |
| Type Method | getBatchResults(model:batch:providerOptions:headers:abortSignal:timeoutNanoseconds:retryPolicy:) | static func getBatchResults(model: any LanguageModel, batch: TextBatchReference, providerOptions: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil, timeoutNanoseconds: UInt64? = nil, retryPolicy: AIRetryPolicy = .default) throws -> AsyncThrowingStream<TextBatchItemResult, any Error> | Sources/SwiftAISDK/AIFacadeBatch.swift |
| Type Method | getBatchResults(model:batch:providerOptions:headers:abortSignal:timeoutNanoseconds:retryPolicy:) | static func getBatchResults(model: any LanguageModel, batch: TextBatch, providerOptions: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil, timeoutNanoseconds: UInt64? = nil, retryPolicy: AIRetryPolicy = .default) throws -> AsyncThrowingStream<TextBatchItemResult, any Error> | Sources/SwiftAISDK/AIFacadeBatch.swift |
| Type Method | getBatchStatus(model:batch:providerOptions:headers:abortSignal:timeoutNanoseconds:retryPolicy:) | static func getBatchStatus(model: any LanguageModel, batch: TextBatchReference, providerOptions: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil, timeoutNanoseconds: UInt64? = nil, retryPolicy: AIRetryPolicy = .default) async throws -> AIBatchStatus | Sources/SwiftAISDK/AIFacadeBatch.swift |
| Type Method | getBatchStatus(model:batch:providerOptions:headers:abortSignal:timeoutNanoseconds:retryPolicy:) | static func getBatchStatus(model: any LanguageModel, batch: TextBatch, providerOptions: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil, timeoutNanoseconds: UInt64? = nil, retryPolicy: AIRetryPolicy = .default) async throws -> AIBatchStatus | Sources/SwiftAISDK/AIFacadeBatch.swift |
| Type Method | object(_:) | static func object(_ values: [String : JSONValue?]) -> JSONValue | Sources/SwiftAISDK/JSONValue.swift |
| Type Method | rerank(model:provider:request:retryPolicy:telemetry:) | static func rerank(model modelID: String, provider: (any AIProvider)? = nil, request: RerankingRequest, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) async throws -> RerankingResult | Sources/SwiftAISDK/AIModelResolution.swift |
| Type Method | rerank(query:documents:using:topK:providerOptions:extraBody:headers:abortSignal:retryPolicy:telemetry:) | static func rerank(query: String, documents: [String], using model: any RerankingModel, topK: Int? = nil, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) async throws -> RerankingResult | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Type Method | resolveEmbeddingModel(_:provider:) | static func resolveEmbeddingModel(_ modelID: String, provider: (any AIProvider)? = nil) throws -> any EmbeddingModel | Sources/SwiftAISDK/AIModelResolution.swift |
| Type Method | resolveImageModel(_:provider:) | static func resolveImageModel(_ modelID: String, provider: (any AIProvider)? = nil) throws -> any ImageModel | Sources/SwiftAISDK/AIModelResolution.swift |
| Type Method | resolveLanguageModel(_:provider:) | static func resolveLanguageModel(_ modelID: String, provider: (any AIProvider)? = nil) throws -> any LanguageModel | Sources/SwiftAISDK/AIModelResolution.swift |
| Type Method | resolveRerankingModel(_:provider:) | static func resolveRerankingModel(_ modelID: String, provider: (any AIProvider)? = nil) throws -> any RerankingModel | Sources/SwiftAISDK/AIModelResolution.swift |
| Type Method | resolveSpeechModel(_:provider:) | static func resolveSpeechModel(_ modelID: String, provider: (any AIProvider)? = nil) throws -> any SpeechModel | Sources/SwiftAISDK/AIModelResolution.swift |
| Type Method | resolveTranscriptionModel(_:provider:) | static func resolveTranscriptionModel(_ modelID: String, provider: (any AIProvider)? = nil) throws -> any TranscriptionModel | Sources/SwiftAISDK/AIModelResolution.swift |
| Type Method | resolveVideoModel(_:provider:) | static func resolveVideoModel(_ modelID: String, provider: (any AIProvider)? = nil) throws -> any VideoModel | Sources/SwiftAISDK/AIModelResolution.swift |
| Type Method | startTextBatch(model:requests:providerOptions:headers:idempotencyKey:abortSignal:timeoutNanoseconds:) | static func startTextBatch(model: any LanguageModel, requests: [TextBatchRequest], providerOptions: [String : JSONValue] = [:], headers: [String : String] = [:], idempotencyKey: String? = nil, abortSignal: AIAbortSignal? = nil, timeoutNanoseconds: UInt64? = nil) async throws -> StartTextBatchResult | Sources/SwiftAISDK/AIFacadeBatch.swift |
| Type Method | startTextBatch(model:requests:providerOptions:headers:idempotencyKey:webhookURL:abortSignal:timeoutNanoseconds:) | static func startTextBatch(model: any LanguageModel, requests: [TextBatchRequest], providerOptions: [String : JSONValue] = [:], headers: [String : String] = [:], idempotencyKey: String? = nil, webhookURL: String? = nil, abortSignal: AIAbortSignal? = nil, timeoutNanoseconds: UInt64? = nil) async throws -> StartTextBatchResult | Sources/SwiftAISDK/AIFacadeBatch.swift |
| Type Method | startTextBatch(model:requests:tools:toolChoice:providerOptions:headers:idempotencyKey:abortSignal:timeoutNanoseconds:) | static func startTextBatch(model: any LanguageModel, requests: [TextBatchRequest], tools: [String : JSONValue] = [:], toolChoice: JSONValue? = nil, providerOptions: [String : JSONValue] = [:], headers: [String : String] = [:], idempotencyKey: String? = nil, abortSignal: AIAbortSignal? = nil, timeoutNanoseconds: UInt64? = nil) async throws -> StartTextBatchResult | Sources/SwiftAISDK/AIFacadeBatch.swift |
| Type Method | startTextBatch(model:requests:tools:toolChoice:providerOptions:headers:idempotencyKey:webhookURL:abortSignal:timeoutNanoseconds:) | static func startTextBatch(model: any LanguageModel, requests: [TextBatchRequest], tools: [String : JSONValue] = [:], toolChoice: JSONValue? = nil, providerOptions: [String : JSONValue] = [:], headers: [String : String] = [:], idempotencyKey: String? = nil, webhookURL: String? = nil, abortSignal: AIAbortSignal? = nil, timeoutNanoseconds: UInt64? = nil) async throws -> StartTextBatchResult | Sources/SwiftAISDK/AIFacadeBatch.swift |
| Type Method | streamEnum(model:prompt:values:temperature:topP:topK:presencePenalty:frequencyPenalty:seed:maxOutputTokens:stopSequences:reasoning:providerOptions:extraBody:headers:schemaName:schemaDescription:timeoutNanoseconds:retryPolicy:telemetry:callbacks:jsonInstruction:repairText:) | static func streamEnum(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, timeoutNanoseconds: UInt64? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, callbacks: AIObjectGenerationCallbacks<String>? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) -> AsyncThrowingStream<ObjectStreamPart<String>, any Error> | Sources/SwiftAISDK/AIFacadeStreamEnumJSON.swift |
| Type Method | streamEnum(model:request:values:schemaName:schemaDescription:timeoutNanoseconds:retryPolicy:telemetry:callbacks:jsonInstruction:repairText:) | static func streamEnum(model: any LanguageModel, request: LanguageModelRequest, values: [String], schemaName: String? = nil, schemaDescription: String? = nil, timeoutNanoseconds: UInt64? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, callbacks: AIObjectGenerationCallbacks<String>? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) -> AsyncThrowingStream<ObjectStreamPart<String>, any Error> | Sources/SwiftAISDK/AIFacadeStreamEnumJSON.swift |
| Type Method | streamJSON(model:prompt:temperature:topP:topK:presencePenalty:frequencyPenalty:seed:maxOutputTokens:stopSequences:reasoning:providerOptions:extraBody:headers:schemaName:schemaDescription:timeoutNanoseconds:retryPolicy:telemetry:callbacks:jsonInstruction:repairText:) | static func streamJSON(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, timeoutNanoseconds: UInt64? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, callbacks: AIObjectGenerationCallbacks<JSONValue>? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) -> AsyncThrowingStream<ObjectStreamPart<JSONValue>, any Error> | Sources/SwiftAISDK/AIFacadeStreamEnumJSON.swift |
| Type Method | streamJSON(model:request:schemaName:schemaDescription:timeoutNanoseconds:retryPolicy:telemetry:callbacks:jsonInstruction:repairText:) | static func streamJSON(model: any LanguageModel, request: LanguageModelRequest, schemaName: String? = nil, schemaDescription: String? = nil, timeoutNanoseconds: UInt64? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, callbacks: AIObjectGenerationCallbacks<JSONValue>? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) -> AsyncThrowingStream<ObjectStreamPart<JSONValue>, any Error> | Sources/SwiftAISDK/AIFacadeStreamEnumJSON.swift |
| Type Method | streamObject(model:provider:request:as:schema:schemaName:schemaDescription:timeoutNanoseconds:retryPolicy:telemetry:callbacks:jsonInstruction:repairText:) | static func streamObject<Object>(model modelID: String, provider: (any AIProvider)? = nil, 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/AIModelResolution.swift |
| Type Method | streamText(_:using:options:tools:timeoutNanoseconds:) | static func streamText(_ prompt: String, using model: any LanguageModel, options: LanguageGenerationOptions = .default, tools: LanguageToolOptions = .none, timeoutNanoseconds: UInt64? = nil) -> AsyncThrowingStream<LanguageStreamPart, any Error> | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Type Method | streamText(_:using:output:options:timeoutNanoseconds:jsonInstruction:repairText:) | static func streamText<FinalOutput, PartialOutput>(_ prompt: String, using model: any LanguageModel, output: AIOutput<FinalOutput, PartialOutput>, options: LanguageGenerationOptions = .default, timeoutNanoseconds: UInt64? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) -> AsyncThrowingStream<AIOutputStreamPart<FinalOutput, PartialOutput>, any Error> where FinalOutput : Sendable, PartialOutput : Sendable | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Type Method | streamText(messages:using:options:tools:timeoutNanoseconds:) | static func streamText(messages: [AIMessage], using model: any LanguageModel, options: LanguageGenerationOptions = .default, tools: LanguageToolOptions = .none, timeoutNanoseconds: UInt64? = nil) -> AsyncThrowingStream<LanguageStreamPart, any Error> | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Type Method | streamText(model:prompt:output:temperature:topP:topK:presencePenalty:frequencyPenalty:seed:maxOutputTokens:stopSequences:reasoning:providerOptions:extraBody:headers:abortSignal:timeoutNanoseconds:timeout:retryPolicy:streamRetries:telemetry:jsonInstruction:repairText:) | static func streamText<FinalOutput, PartialOutput>(model: any LanguageModel, prompt: String, output: AIOutput<FinalOutput, PartialOutput>, 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] = [:], abortSignal: AIAbortSignal? = nil, timeoutNanoseconds: UInt64? = nil, timeout: AIStreamTimeoutConfiguration? = nil, retryPolicy: AIRetryPolicy = .default, streamRetries: Int? = nil, telemetry: Telemetry.Options? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) -> AsyncThrowingStream<AIOutputStreamPart<FinalOutput, PartialOutput>, any Error> where FinalOutput : Sendable, PartialOutput : Sendable | Sources/SwiftAISDK/AIFacadeStreamText.swift |
| Type Method | streamText(model:prompt:output:temperature:topP:topK:presencePenalty:frequencyPenalty:seed:maxOutputTokens:stopSequences:reasoning:providerOptions:extraBody:headers:abortSignal:timeoutNanoseconds:timeout:retryPolicy:telemetry:jsonInstruction:repairText:) | static func streamText<FinalOutput, PartialOutput>(model: any LanguageModel, prompt: String, output: AIOutput<FinalOutput, PartialOutput>, 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] = [:], abortSignal: AIAbortSignal? = nil, timeoutNanoseconds: UInt64? = nil, timeout: AIStreamTimeoutConfiguration? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) -> AsyncThrowingStream<AIOutputStreamPart<FinalOutput, PartialOutput>, any Error> where FinalOutput : Sendable, PartialOutput : Sendable | Sources/SwiftAISDK/AIFacadeStreamTextCompatibility.swift |
| Type Method | streamText(model:prompt:temperature:topP:topK:presencePenalty:frequencyPenalty:seed:maxOutputTokens:stopSequences:responseFormat:reasoning:tools:executableTools:maxSteps:stopWhen:prepareStep:toolApproval:repairToolCall:toolChoice:includeRawChunks:providerOptions:extraBody:headers:abortSignal:timeoutNanoseconds:timeout:retryPolicy:streamRetries:telemetry:) | static func streamText(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] = [], responseFormat: AIResponseFormat? = nil, reasoning: String? = nil, tools: [String : JSONValue] = [:], executableTools: [AITool] = [], maxSteps: Int = 5, stopWhen: [AIStopCondition] = [], prepareStep: AIPrepareStep? = nil, toolApproval: AIToolApproval? = nil, repairToolCall: AIToolCallRepair? = nil, toolChoice: JSONValue? = nil, includeRawChunks: Bool = false, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil, timeoutNanoseconds: UInt64? = nil, timeout: AIStreamTimeoutConfiguration? = nil, retryPolicy: AIRetryPolicy = .default, streamRetries: Int? = nil, telemetry: Telemetry.Options? = nil) -> AsyncThrowingStream<LanguageStreamPart, any Error> | Sources/SwiftAISDK/AIFacadeStreamText.swift |
| Type Method | streamText(model:prompt:temperature:topP:topK:presencePenalty:frequencyPenalty:seed:maxOutputTokens:stopSequences:responseFormat:reasoning:tools:executableTools:maxSteps:stopWhen:prepareStep:toolApproval:repairToolCall:toolChoice:includeRawChunks:providerOptions:extraBody:headers:abortSignal:timeoutNanoseconds:timeout:retryPolicy:telemetry:) | static func streamText(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] = [], responseFormat: AIResponseFormat? = nil, reasoning: String? = nil, tools: [String : JSONValue] = [:], executableTools: [AITool] = [], maxSteps: Int = 5, stopWhen: [AIStopCondition] = [], prepareStep: AIPrepareStep? = nil, toolApproval: AIToolApproval? = nil, repairToolCall: AIToolCallRepair? = nil, toolChoice: JSONValue? = nil, includeRawChunks: Bool = false, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil, timeoutNanoseconds: UInt64? = nil, timeout: AIStreamTimeoutConfiguration? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) -> AsyncThrowingStream<LanguageStreamPart, any Error> | Sources/SwiftAISDK/AIFacadeStreamTextCompatibility.swift |
| Type Method | streamText(model:provider:prompt:temperature:topP:topK:presencePenalty:frequencyPenalty:seed:maxOutputTokens:stopSequences:responseFormat:reasoning:tools:executableTools:maxSteps:stopWhen:prepareStep:toolApproval:toolChoice:includeRawChunks:providerOptions:extraBody:headers:abortSignal:timeoutNanoseconds:retryPolicy:telemetry:) | static func streamText(model modelID: String, provider: (any AIProvider)? = nil, 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] = [], responseFormat: AIResponseFormat? = nil, reasoning: String? = nil, tools: [String : JSONValue] = [:], executableTools: [AITool] = [], maxSteps: Int = 5, stopWhen: [AIStopCondition] = [], prepareStep: AIPrepareStep? = nil, toolApproval: AIToolApproval? = nil, toolChoice: JSONValue? = nil, includeRawChunks: Bool = false, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil, timeoutNanoseconds: UInt64? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) -> AsyncThrowingStream<LanguageStreamPart, any Error> | Sources/SwiftAISDK/AIModelResolution.swift |
| Type Method | streamText(model:provider:request:executableTools:maxSteps:stopWhen:prepareStep:toolApproval:timeoutNanoseconds:retryPolicy:telemetry:) | static func streamText(model modelID: String, provider: (any AIProvider)? = nil, request: LanguageModelRequest, executableTools: [AITool], maxSteps: Int = 5, stopWhen: [AIStopCondition] = [], prepareStep: AIPrepareStep? = nil, toolApproval: AIToolApproval? = nil, timeoutNanoseconds: UInt64? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) -> AsyncThrowingStream<LanguageStreamPart, any Error> | Sources/SwiftAISDK/AIModelResolution.swift |
| Type Method | streamText(model:provider:request:timeoutNanoseconds:retryPolicy:telemetry:) | static func streamText(model modelID: String, provider: (any AIProvider)? = nil, request: LanguageModelRequest, timeoutNanoseconds: UInt64? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) -> AsyncThrowingStream<LanguageStreamPart, any Error> | Sources/SwiftAISDK/AIModelResolution.swift |
| Type Method | streamText(model:request:executableTools:maxSteps:stopWhen:prepareStep:toolApproval:repairToolCall:timeoutNanoseconds:timeout:retryPolicy:streamRetries:telemetry:) | static func streamText(model: any LanguageModel, request: LanguageModelRequest, executableTools: [AITool], maxSteps: Int = 5, stopWhen: [AIStopCondition] = [], prepareStep: AIPrepareStep? = nil, toolApproval: AIToolApproval? = nil, repairToolCall: AIToolCallRepair? = nil, timeoutNanoseconds: UInt64? = nil, timeout: AIStreamTimeoutConfiguration? = nil, retryPolicy: AIRetryPolicy = .default, streamRetries: Int? = nil, telemetry: Telemetry.Options? = nil) -> AsyncThrowingStream<LanguageStreamPart, any Error> | Sources/SwiftAISDK/AIFacadeStreamText.swift |
| Type Method | streamText(model:request:executableTools:maxSteps:stopWhen:prepareStep:toolApproval:repairToolCall:timeoutNanoseconds:timeout:retryPolicy:telemetry:) | static func streamText(model: any LanguageModel, request: LanguageModelRequest, executableTools: [AITool], maxSteps: Int = 5, stopWhen: [AIStopCondition] = [], prepareStep: AIPrepareStep? = nil, toolApproval: AIToolApproval? = nil, repairToolCall: AIToolCallRepair? = nil, timeoutNanoseconds: UInt64? = nil, timeout: AIStreamTimeoutConfiguration? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) -> AsyncThrowingStream<LanguageStreamPart, any Error> | Sources/SwiftAISDK/AIFacadeStreamTextCompatibility.swift |
| Type Method | streamText(model:request:output:timeoutNanoseconds:timeout:retryPolicy:streamRetries:telemetry:jsonInstruction:repairText:) | static func streamText<FinalOutput, PartialOutput>(model: any LanguageModel, request: LanguageModelRequest, output: AIOutput<FinalOutput, PartialOutput>, timeoutNanoseconds: UInt64? = nil, timeout: AIStreamTimeoutConfiguration? = nil, retryPolicy: AIRetryPolicy = .default, streamRetries: Int? = nil, telemetry: Telemetry.Options? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) -> AsyncThrowingStream<AIOutputStreamPart<FinalOutput, PartialOutput>, any Error> where FinalOutput : Sendable, PartialOutput : Sendable | Sources/SwiftAISDK/AIFacadeStreamText.swift |
| Type Method | streamText(model:request:output:timeoutNanoseconds:timeout:retryPolicy:telemetry:jsonInstruction:repairText:) | static func streamText<FinalOutput, PartialOutput>(model: any LanguageModel, request: LanguageModelRequest, output: AIOutput<FinalOutput, PartialOutput>, timeoutNanoseconds: UInt64? = nil, timeout: AIStreamTimeoutConfiguration? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil, jsonInstruction: AIJSONInstruction? = nil, repairText: (@Sendable (AIObjectRepairContext) async throws -> String?)? = nil) -> AsyncThrowingStream<AIOutputStreamPart<FinalOutput, PartialOutput>, any Error> where FinalOutput : Sendable, PartialOutput : Sendable | Sources/SwiftAISDK/AIFacadeStreamTextCompatibility.swift |
| Type Method | streamText(model:request:timeoutNanoseconds:timeout:retryPolicy:streamRetries:telemetry:) | static func streamText(model: any LanguageModel, request: LanguageModelRequest, timeoutNanoseconds: UInt64? = nil, timeout: AIStreamTimeoutConfiguration? = nil, retryPolicy: AIRetryPolicy = .default, streamRetries: Int? = nil, telemetry: Telemetry.Options? = nil) -> AsyncThrowingStream<LanguageStreamPart, any Error> | Sources/SwiftAISDK/AIFacadeStreamText.swift |
| Type Method | streamText(model:request:timeoutNanoseconds:timeout:retryPolicy:telemetry:) | static func streamText(model: any LanguageModel, request: LanguageModelRequest, timeoutNanoseconds: UInt64? = nil, timeout: AIStreamTimeoutConfiguration? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) -> AsyncThrowingStream<LanguageStreamPart, any Error> | Sources/SwiftAISDK/AIFacadeStreamTextCompatibility.swift |
| Type Method | success(value:rawValue:) | static func success(value: JSONValue, rawValue: JSONValue) -> AIJSONParseResult | Sources/SwiftAISDK/JSONParsing.swift |
| Type Method | system(_:) | static func system(_ text: String) -> AIMessage | Sources/SwiftAISDK/CoreMessages.swift |
| Type Method | system(_:id:metadata:) | static func system(_ text: String, id: String = UUID().uuidString, metadata: [String : JSONValue] = [:]) -> AIUIMessage | Sources/SwiftAISDK/CoreUIMessages.swift |
| Type Method | toolResponses(approvalResponses:toolResults:) | static func toolResponses(approvalResponses: [AIToolApprovalResponse] = [], toolResults: [AIToolResult] = []) -> AIMessage | Sources/SwiftAISDK/CoreMessages.swift |
| Type Method | toolResult(_:) | static func toolResult(_ result: AIToolResult) -> AIMessage | Sources/SwiftAISDK/CoreMessages.swift |
| Type Method | transcribe(audio:using:fileName:mimeType:language:prompt:providerOptions:extraBody:headers:abortSignal:retryPolicy:telemetry:) | static func transcribe(audio: Data, using model: any TranscriptionModel, fileName: String = "audio.wav", mimeType: String = "audio/wav", language: String? = nil, prompt: String? = nil, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) async throws -> TranscriptionResult | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Type Method | transcribe(model:provider:request:retryPolicy:telemetry:) | static func transcribe(model modelID: String, provider: (any AIProvider)? = nil, request: AudioTranscriptionRequest, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) async throws -> TranscriptionResult | Sources/SwiftAISDK/AIModelResolution.swift |
| Type Method | transformAudio(audio:using:fileName:mimeType:voice:format:providerOptions:extraBody:headers:abortSignal:retryPolicy:telemetry:) | static func transformAudio(audio: Data, using model: any AudioTransformationModel, fileName: String = "audio.wav", mimeType: String = "audio/wav", voice: String? = nil, format: String? = nil, providerOptions: [String : JSONValue] = [:], extraBody: [String : JSONValue] = [:], headers: [String : String] = [:], abortSignal: AIAbortSignal? = nil, retryPolicy: AIRetryPolicy = .default, telemetry: Telemetry.Options? = nil) async throws -> AudioTransformationResult | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Type Method | useDefaultLogger() | static func useDefaultLogger() | Sources/SwiftAISDK/WarningLogging.swift |
| Type Method | useLogger(_:) | static func useLogger(_ logger: any AIWarningLogger) | Sources/SwiftAISDK/WarningLogging.swift |
| Type Method | user(_:) | static func user(_ text: String) -> AIMessage | Sources/SwiftAISDK/CoreMessages.swift |
| Type Method | user(_:id:metadata:) | static func user(_ text: String, id: String = UUID().uuidString, metadata: [String : JSONValue] = [:]) -> AIUIMessage | Sources/SwiftAISDK/CoreUIMessages.swift |
| Type Method | videoURL(_:mediaType:providerMetadata:) | static func videoURL(_ url: String, mediaType: String = "video/*", providerMetadata: [String : JSONValue] = [:]) -> AIContentPart | Sources/SwiftAISDK/CoreMessages.swift |
| Type Method | withLogger(_:operation:) | static func withLogger<Result>(_ logger: any AIWarningLogger, operation: () async throws -> Result) async rethrows -> Result | Sources/SwiftAISDK/WarningLogging.swift |
| Type Method | withLoggingDisabled(operation:) | static func withLoggingDisabled<Result>(operation: () async throws -> Result) async rethrows -> Result | Sources/SwiftAISDK/WarningLogging.swift |
| Type Property | default | static let default: AIRetryPolicy | Sources/SwiftAISDK/Core.swift |
| Type Property | default | static let default: LanguageGenerationOptions | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Type Property | none | static let none: AIRetryPolicy | Sources/SwiftAISDK/Core.swift |
| Type Property | none | static let none: LanguageToolOptions | Sources/SwiftAISDK/SwiftNativeLanguageAPI.swift |
| Type Property | normalClosure | static let normalClosure: AIDuplexWebSocketCloseMetadata | Sources/SwiftAISDK/DuplexWebSocketTransport.swift |
| Type Property | shared | static let shared: URLSessionDuplexWebSocketTransport | Sources/SwiftAISDK/DuplexWebSocketTransport.swift |
| Type Property | shared | static let shared: URLSessionTransport | Sources/SwiftAISDK/HTTP.swift |