Plugin.Maui.Spine.AI 0.1.36

dotnet add package Plugin.Maui.Spine.AI --version 0.1.36
                    
NuGet\Install-Package Plugin.Maui.Spine.AI -Version 0.1.36
                    
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="Plugin.Maui.Spine.AI" Version="0.1.36" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Plugin.Maui.Spine.AI" Version="0.1.36" />
                    
Directory.Packages.props
<PackageReference Include="Plugin.Maui.Spine.AI" />
                    
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 Plugin.Maui.Spine.AI --version 0.1.36
                    
#r "nuget: Plugin.Maui.Spine.AI, 0.1.36"
                    
#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 Plugin.Maui.Spine.AI@0.1.36
                    
#: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=Plugin.Maui.Spine.AI&version=0.1.36
                    
Install as a Cake Addin
#tool nuget:?package=Plugin.Maui.Spine.AI&version=0.1.36
                    
Install as a Cake Tool

Plugin.Maui.Spine.AI

AI in a Spine app without keys in the app. Each named feature is one IChatClient:

  • It streams from the app's Spine.Server.AI backend.
  • It can try a model on the device first, such as Apple Intelligence.
  • It answers "off", "budget spent" and "too many calls" in one shape.
  • On-device usage is counted on the device.

It is built on Microsoft.Extensions.AI.

dotnet add package Plugin.Maui.Spine.AI
builder.UseSpineAI(o =>
{
    o.Backend = new Uri("https://api.example.com/ai");          // the prefix given to MapSpineAI
    o.Feature("Assistant", f => f
        .OnDevice(_ => new AppleIntelligenceChatClient())       // your own reference to Microsoft.Maui.Essentials.AI
        .ThenServer());
    o.Feature("RaceStory", f => f.Server());
});
public partial class AssistantViewModel([FromKeyedServices("Assistant")] IChatClient chat) : ViewModelBase
{
    async Task AskAsync(string prompt, CancellationToken ct)
    {
        await foreach (var update in chat.GetStreamingResponseAsync(prompt, cancellationToken: ct))
            Answer += update.Text;
    }
}

A feature that is off throws AIFeatureOffException, which TaskState shows as its empty state.

Images a model makes once on the server (Plugin.Maui.Spine.Server.AI.Assets) show on any Image: a placeholder while the server makes them, the image when it is ready.

<Image GeneratedImage.Feature="Postcard" GeneratedImage.Key="{Binding City}"
       GeneratedImage.Placeholder="postcard_blank.png" GeneratedImage.FailedSource="postcard_missing.png" />

Documentation

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-android36.0 is compatible.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-ios26.0 is compatible.  net10.0-maccatalyst was computed.  net10.0-maccatalyst26.0 is compatible.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed.  net10.0-windows10.0.19041 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.36 0 10/27/2026
0.1.35 0 10/27/2026
0.1.34 0 10/27/2026
0.1.33 0 10/27/2026
0.1.32 0 10/27/2026
0.1.31 0 10/27/2026
0.1.30 0 10/27/2026
0.1.29 34 10/26/2026
0.1.28 35 10/26/2026
0.1.27 36 10/26/2026
0.1.26 49 10/24/2026
0.1.25 47 10/24/2026
0.1.24 48 10/23/2026
0.1.23 46 10/23/2026
0.1.22 52 10/23/2026
0.1.21 58 10/23/2026
0.1.20 49 10/23/2026
0.1.19 46 10/22/2026
0.1.18 82 10/21/2026
0.1.17 85 10/20/2026
Loading failed