Contoso.AI.AIFeatureCore 0.0.1-beta

This is a prerelease version of Contoso.AI.AIFeatureCore.
The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package Contoso.AI.AIFeatureCore --version 0.0.1-beta
                    
NuGet\Install-Package Contoso.AI.AIFeatureCore -Version 0.0.1-beta
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Contoso.AI.AIFeatureCore" Version="0.0.1-beta" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Contoso.AI.AIFeatureCore" Version="0.0.1-beta" />
                    
Directory.Packages.props
<PackageReference Include="Contoso.AI.AIFeatureCore" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Contoso.AI.AIFeatureCore --version 0.0.1-beta
                    
#r "nuget: Contoso.AI.AIFeatureCore, 0.0.1-beta"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Contoso.AI.AIFeatureCore@0.0.1-beta
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Contoso.AI.AIFeatureCore&version=0.0.1-beta&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Contoso.AI.AIFeatureCore&version=0.0.1-beta&prerelease
                    
Install as a Cake Tool

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 AIFeatureReadyState enum
  • Result Handling: Robust result handling with AIFeatureReadyResult and AIFeatureReadyResultState
  • 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 use
  • Ready - Feature is initialized and ready to use
  • Initializing - 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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