transcript
TypeScriptget transcript(): TranscriptSwift declarationvar transcript: TranscriptA transcript to generate the next entry for
struct · iOS 27.0+ · SDK 27.1
struct LanguageModelExecutorGenerationRequestA type that contains the details for a generation request. A generation request is the input payload that ``LanguageModelExecutor/respond(to:model:streamingInto:)`` handles. It bundles everything the executor needs to translate a framework call into a backend request, like the conversation so far, what tools are available, and so on.
get transcript(): TranscriptSwift declarationvar transcript: TranscriptA transcript to generate the next entry for
set transcript(value: Transcript)Swift declarationvar transcript: TranscriptA transcript to generate the next entry for
get contextOptions(): ContextOptionsSwift declarationvar contextOptions: ContextOptionsSettings that configure how the model is prompted
set contextOptions(value: ContextOptions)Swift declarationvar contextOptions: ContextOptionsSettings that configure how the model is prompted
get generationOptions(): GenerationOptionsSwift declarationvar generationOptions: GenerationOptionsGeneration options that control sampling behavior
set generationOptions(value: GenerationOptions)Swift declarationvar generationOptions: GenerationOptionsGeneration options that control sampling behavior
get enabledToolDefinitions(): Array<Transcript_ToolDefinition>Swift declarationvar enabledToolDefinitions: [Transcript.ToolDefinition]The subset tool definitions that the model is allowed to call
set enabledToolDefinitions(value: Array<Transcript_ToolDefinition>)Swift declarationvar enabledToolDefinitions: [Transcript.ToolDefinition]The subset tool definitions that the model is allowed to call
get id(): stringSwift declarationvar id: UUIDA request id for logging and tracing purposes
set id(value: string)Swift declarationvar id: UUIDA request id for logging and tracing purposes
static init(id: string, transcript: Transcript, enabledTools: Array<Transcript_ToolDefinition>, schema: (GenerationSchema) | null, generationOptions: GenerationOptions, contextOptions: ContextOptions, metadata: Record<string, SDKHandle>): LanguageModelExecutorGenerationRequestSwift declarationinit(id: UUID, transcript: Transcript, enabledTools: [Transcript.ToolDefinition], schema: GenerationSchema? = nil, generationOptions: GenerationOptions, contextOptions: ContextOptions, metadata: [String : any ConvertibleToGeneratedContent])Creates a generation request. - Parameters: - id: The request identifier. - transcript: The transcript to generate the next entry for. - enabledTools: The subset tool definitions that the model can call. - schema: The schema dictating the required output format. - generationOptions: The generation options to use. - contextOptions: The settings that configure how the model is prompted. - metadata: The metadata to attach to the request.
get schema(): (GenerationSchema) | nullSwift declarationvar schema: GenerationSchema?An optional schema dictating the required output format
set schema(value: (GenerationSchema) | null)Swift declarationvar schema: GenerationSchema?An optional schema dictating the required output format
get metadata(): Record<string, GeneratedContent>Swift declarationvar metadata: [String : GeneratedContent]Metadata to attach to the request
set metadata(value: Record<string, GeneratedContent>)Swift declarationvar metadata: [String : GeneratedContent]Metadata to attach to the request
No declarations were skipped in this snapshot.