AIFeatureReadyState Enum

Definition

Specifies the language model readiness states.

public enum class AIFeatureReadyState
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.AI.AIFeatureReadyContract, 65536)]
enum class AIFeatureReadyState
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.AI.AIFeatureReadyContract), 65536)]
public enum AIFeatureReadyState
var value = Microsoft.Windows.AI.AIFeatureReadyState.ready
Public Enum AIFeatureReadyState
Inheritance
AIFeatureReadyState
Attributes

Fields

Name Value Description
Ready 0

Model is installed and ready to use.

Note

In some cases (such as during disk cleaning), model status can revert to a non-ready status.

NotReady 1
NotSupportedOnCurrentSystem 2

Model is not supported for the current OS version or hardware configuration.

DisabledByUser 3

Model has been removed or disabled.

CapabilityMissing 4

This value is available starting with Windows App SDK 2.0

Model is not available to the current app due to a missing capability declaration. EnsureReadyAsync and CreateAsync will throw winrt::hresult_access_denied (add the systemAIModels capability to the app manifest).

NotCompatibleWithSystemHardware 5

This value is available starting with Windows App SDK 2.0

Model cannot be installed because it is not compatible with the current system hardware (there is no NPU, or the NPU does not meet the specific requirements of the model).

OSUpdateNeeded 6

This value is available starting with Windows App SDK 2.0

Model cannot be installed because the current OS version is incompatible.

Note

Windows Update might not be sufficient—a major OS upgrade may be required.

Applies to

See also