<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FoundationModels",
  "identifier" : "/documentation/FoundationModels/LanguageModelExecutorGenerationRequest/init(id:transcript:enabledTools:schema:generationOptions:contextOptions:metadata:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation Models",
      "FoundationModels"
    ],
    "preciseIdentifier" : "s:16FoundationModels38LanguageModelExecutorGenerationRequestV2id10transcript12enabledTools6schema17generationOptions07contextN08metadataAC0A04UUIDV_AA10TranscriptVSayAO14ToolDefinitionVGAA0F6SchemaVSgAA0fN0VAA07ContextN0VSDySSAA29ConvertibleToGeneratedContent_pGtcfc"
  },
  "title" : "init(id:transcript:enabledTools:schema:generationOptions:contextOptions:metadata:)"
}
-->

# init(id:transcript:enabledTools:schema:generationOptions:contextOptions:metadata:)

Creates a generation request.

```
init(id: UUID, transcript: Transcript, enabledTools: [Transcript.ToolDefinition], schema: GenerationSchema? = nil, generationOptions: GenerationOptions, contextOptions: ContextOptions, metadata: [String : any ConvertibleToGeneratedContent])
```

## Parameters

`id`

The request identifier.

`transcript`

The transcript to generate the next entry for.

`enabledTools`

The subset of 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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)