<!--
{
  "availability" : [
    "iOS: 26.0.0 - 27.0.0",
    "iPadOS: 26.0.0 - 27.0.0",
    "macCatalyst: 26.0.0 - 27.0.0",
    "macOS: 26.0.0 - 27.0.0",
    "visionOS: 26.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "FoundationModels",
  "identifier" : "/documentation/FoundationModels/LanguageModelSession/GenerationError/assetsUnavailable(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Foundation Models"
    ],
    "preciseIdentifier" : "s:16FoundationModels20LanguageModelSessionC15GenerationErrorO17assetsUnavailableyA2E7ContextVcAEmF"
  },
  "title" : "LanguageModelSession.GenerationError.assetsUnavailable(_:)"
}
-->

# LanguageModelSession.GenerationError.assetsUnavailable(_:)

An error that indicates the assets required for the session are unavailable.

```
case assetsUnavailable(LanguageModelSession.GenerationError.Context)
```

## Discussion

This may happen if you forget to check model availability to begin with,
or if the model assets are deleted. This can happen if the user disables
AppleIntelligence while your app is running.

You may be able to recover from this error by retrying later after the
device has freed up enough space to redownload model assets.

---

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)