Documentation Language: Swift

Initializer

init(module:generationStrategy:aqlContext:protectedAreaManager:)

Creates a new MTL execution context.

@MainActor init(module: MTLModule, generationStrategy: any MTLGenerationStrategy, aqlContext: AQLExecutionContext? = nil, protectedAreaManager: MTLProtectedAreaManager? = nil)

Parameters

module

The MTL module to execute

generationStrategy

The output strategy for generated text

aqlContext

Optional AQL context (default: creates new one)

protectedAreaManager

Optional protected area manager for preserving user code