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