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

# LanguageModelError.UnsupportedCapability

Information about an unsupported capability.

```
struct UnsupportedCapability
```

## Topics

### Creating an error instance

[`init(capability: LanguageModelCapabilities.Capability, debugDescription: String, metadata: [String : any Sendable])`](/documentation/FoundationModels/LanguageModelError/UnsupportedCapability/init(capability:debugDescription:metadata:))

Creates information describing a capability the model doesn’t support.

### Inspecting unsupported capability errors

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

Additional information about the failure, keyed by name.

[`var capability: LanguageModelCapabilities.Capability`](/documentation/FoundationModels/LanguageModelError/UnsupportedCapability/capability)

The capability that the model doesn’t support.

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

A debug description to help developers diagnose issues during development.

## Relationships

### Conforms To

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

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

---

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)