<!--
{
  "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/LanguageModelError/UnsupportedGenerationGuide",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation Models",
      "FoundationModels"
    ],
    "preciseIdentifier" : "s:16FoundationModels18LanguageModelErrorO26UnsupportedGenerationGuideV"
  },
  "title" : "LanguageModelError.UnsupportedGenerationGuide"
}
-->

# LanguageModelError.UnsupportedGenerationGuide

Information about an unsupported generation guide.

```
struct UnsupportedGenerationGuide
```

## Topics

### Creating an error instance

[`init(schemaName: String?, debugDescription: String, metadata: [String : any Sendable])`](/documentation/FoundationModels/LanguageModelError/UnsupportedGenerationGuide/init(schemaName:debugDescription:metadata:))

Creates information describing a generation guide the model doesn’t support.

### Inspecting unsupported generation guide errors

[`var metadata: [String : any Sendable]`](/documentation/FoundationModels/LanguageModelError/UnsupportedGenerationGuide/metadata)

Additional information about the failure, keyed by name.

[`var schemaName: String?`](/documentation/FoundationModels/LanguageModelError/UnsupportedGenerationGuide/schemaName)

The name of the schema whose generation guide isn’t supported, if any.

[`var debugDescription: String`](/documentation/FoundationModels/LanguageModelError/UnsupportedGenerationGuide/debugDescription)

A debug description to help developers diagnose issues during development.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

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)