Plugin.Maui.Spine.AI 0.1.36

There is a newer version of this package available.
See the version list below for details.
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.261119.1593 51 11/19/2026
0.261119.1591 49 11/19/2026
0.261119.1589 47 11/19/2026
0.261119.1587 43 11/19/2026
0.261119.1585 52 11/19/2026
0.261118.1569 71 11/18/2026
0.261118.1565 70 11/18/2026
0.261118.1564 68 11/18/2026
0.261118.1563 68 11/18/2026
0.261118.1562 71 11/18/2026
0.261118.1561 79 11/18/2026
0.261117.1560 86 11/17/2026
0.261117.1559 79 11/17/2026
0.261113.1556 100 11/13/2026
0.261112.1555 93 11/12/2026
0.261112.1554 90 11/12/2026
0.261112.1553 89 11/12/2026
0.261112.1552 94 11/12/2026
0.261112.1551 88 11/12/2026
0.1.36 105 10/27/2026
Loading failed