<!--
{
  "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/GenerationSchema/init(root:dependencies:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation Models",
      "FoundationModels"
    ],
    "preciseIdentifier" : "s:16FoundationModels16GenerationSchemaV4root12dependenciesAcA07DynamiccD0V_SayAGGtKcfc"
  },
  "title" : "init(root:dependencies:)"
}
-->

# init(root:dependencies:)

Creates a schema by providing an array of dynamic schemas.

```
init(root: DynamicGenerationSchema, dependencies: [DynamicGenerationSchema]) throws
```

## Parameters

`root`

The root schema.

`dependencies`

An array of dynamic schemas.

## Discussion> Throws: If there are schemas with naming conflicts or
> references to undefined types.

---

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)