Contoso.AI.AIFeatureCore
0.0.1-beta
dotnet add package Contoso.AI.AIFeatureCore --version 0.0.1-beta
NuGet\Install-Package Contoso.AI.AIFeatureCore -Version 0.0.1-beta
<PackageReference Include="Contoso.AI.AIFeatureCore" Version="0.0.1-beta" />
<PackageVersion Include="Contoso.AI.AIFeatureCore" Version="0.0.1-beta" />
<PackageReference Include="Contoso.AI.AIFeatureCore" />
paket add Contoso.AI.AIFeatureCore --version 0.0.1-beta
#r "nuget: Contoso.AI.AIFeatureCore, 0.0.1-beta"
#:package Contoso.AI.AIFeatureCore@0.0.1-beta
#addin nuget:?package=Contoso.AI.AIFeatureCore&version=0.0.1-beta&prerelease
#tool nuget:?package=Contoso.AI.AIFeatureCore&version=0.0.1-beta&prerelease
Contoso.AI.AIFeatureCore
A lightweight .NET library for managing AI feature state and readiness detection.
Installation
Install via NuGet Package Manager:
dotnet add package Contoso.AI.AIFeatureCore
Or via Package Manager Console:
Install-Package Contoso.AI.AIFeatureCore
Features
- AI Feature State Management: Track the readiness state of AI features with
AIFeatureReadyStateenum - Result Handling: Robust result handling with
AIFeatureReadyResultandAIFeatureReadyResultState - Exception Management: Built-in support for extended error information
Usage
Basic Example
using Contoso.AI;
// Check if an AI feature is ready
AIFeatureReadyState state = AIFeatureReadyState.Initializing;
// Handle the result of an AI feature operation
AIFeatureReadyResult result = AIFeatureReadyResult.Success();
// Handle failure with exception details
try
{
// Your AI feature logic
}
catch (Exception ex)
{
AIFeatureReadyResult failedResult = AIFeatureReadyResult.Failed(ex);
Console.WriteLine($"AI Feature failed: {failedResult.ExtendedError?.Message}");
}
AI Feature States
The library provides three states for tracking AI feature readiness:
NotReady- Feature is not yet ready for useReady- Feature is initialized and ready to useInitializing- Feature is currently being initialized
Requirements
- .NET 8.0 or later
- Windows 10.0.19041.0 or later
License
This project is licensed under the MIT License.
Support
For issues, questions, or contributions, please open an issue in the repository.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows10.0.19041 is compatible. net9.0-windows was computed. net10.0-windows was computed. |
-
net8.0-windows10.0.19041
- No dependencies.
NuGet packages (6)
Showing the top 5 NuGet packages that depend on Contoso.AI.AIFeatureCore:
| Package | Downloads |
|---|---|
|
Contoso.AI.PolitenessAnalyzer
AI-powered politeness analysis for text using ONNX Runtime. Model downloads automatically at build time. Requires Windows 10 SDK 19041 or later. |
|
|
Contoso.AI.PersonDetector
AI-powered person detection for images using ONNX Runtime. Model downloads automatically at build time. Requires Windows 10 SDK 19041 or later. |
|
|
Contoso.AI.PolitenessAnalysis
AI-powered politeness analysis for text using ONNX Runtime. Model downloads automatically at build time. Requires Windows 10 SDK 19041 or later. |
|
|
Contoso.AI.ImageSegmenterSINet
AI-powered image segmentation using Qualcomm SINet ONNX model. Separates foreground from background in images. Model downloads automatically at build time. Requires Windows 10 SDK 19041 or later. |
|
|
Contoso.AI.TextEmbedder
Base interface library for text embedding models. Provides ITextEmbedder interface and common types for embedding generation. Requires Windows 10 SDK 19041 or later. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|