<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FoundationModels",
  "identifier" : "/documentation/FoundationModels/DynamicGenerationSchema/init(type:guides:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation Models",
      "FoundationModels"
    ],
    "preciseIdentifier" : "s:16FoundationModels23DynamicGenerationSchemaV4type6guidesACxm_SayAA0D5GuideVyxGGtcAA9GenerableRzlufc"
  },
  "title" : "init(type:guides:)"
}
-->

# init(type:guides:)

Creates a schema from a generable type and guides.

```
init<Value>(type: Value.Type, guides: [GenerationGuide<Value>] = []) where Value : Generable
```

## Parameters

`type`

A `Generable` type

`guides`

Generation guides to apply to this `DynamicGenerationSchema`.

---

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)