Agnostic 0.1.2

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

Agnostic

Prompt in, typed object out, from any provider. A profile name picks the model and the transport.

record Summary(string Title, string Gist);

Summary a = await AI.Ask<Summary>(prompt);           // Opus, via the API
Summary b = await AI.Ask<Summary>(prompt, "cheap");  // a cheap OpenAI model
Summary c = await AI.Ask<Summary>(prompt, "sub");    // the local claude CLI, no API key

var answer = await AI.Ask("What is in this?", "sub", images: [AI.Image(path)]);
Console.WriteLine(answer.Spend);   // 3026 ms  $0.003202  1 call  claude-sonnet-5

Ask returns AIAnswer<T>, which converts implicitly to T. Keep it for cost, timing, failure and which tools ran; a failed call is a returned value, not an exception.

Tools are ordinary methods and work on every backend. AIAgent<T> declares a profile, a system prompt and [Tool] methods as one type. Also streaming, embeddings, per-profile limits, a usage log and Admin spend reports.

Targets net9.0 and net10.0. Full reference: DETAILS.md.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos 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.

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.2 62 9/3/2026
0.1.1 57 9/2/2026
0.1.0 54 9/2/2026