Availability
@frozen
enum Availability : Equatable, SendableAvailability states for the on-device model.
-
Reasons that the on-device model is in the
unavailable(_:)state.For more details, see the Apple documentation.
Declaration
Swift
@nonexhaustive public enum UnavailableReason : Hashable, Equatable, Sendable -
The on-device model is ready and available for use.
For more details, see the Apple documentation.
Declaration
Swift
case available -
The on-device model is not available for the specified reason.
For more details, see the Apple documentation.
Declaration
Swift
case unavailable(FirebaseAI.SystemLanguageModel.Availability.UnavailableReason)