init
TypeScriptstatic init(configuration: SystemLanguageModel_Executor_Configuration): SystemLanguageModel_ExecutorSwift declarationinit(configuration: SystemLanguageModel.Executor.Configuration)Creates an executor from a configuration.
struct · iOS 27.0+ · SDK 27.1
struct Executorstatic init(configuration: SystemLanguageModel_Executor_Configuration): SystemLanguageModel_ExecutorSwift declarationinit(configuration: SystemLanguageModel.Executor.Configuration)Creates an executor from a configuration.
prewarm(model: SystemLanguageModel, transcript: Transcript): voidSwift declarationfunc prewarm(model: SystemLanguageModel.Executor.Model, transcript: Transcript)Loads assets into memory or pre-fills caches ahead of a request. - Note: The default implementation is a no-op.
respond(request: LanguageModelExecutorGenerationRequest, model: SystemLanguageModel, channel: LanguageModelExecutorGenerationChannel): Promise<void>Swift declarationnonisolated(nonsending) func respond(to request: LanguageModelExecutorGenerationRequest, model: SystemLanguageModel, streamingInto channel: LanguageModelExecutorGenerationChannel) async throwsCreates a response stream containing deltas. - Parameters: - request: The generation request. - model: The model instance for this request, providing live model state. - channel: A channel used to send events. - Note: If the model declares that it does not have a given capability via ``LanguageModel/capabilities``, then the system will automatically throw an error instead of invoking this method. You do not need to manually validate the request for any functionality captured by ``LanguageModelCapabilities``.
No declarations were skipped in this snapshot.