Frontmatec.AI 0.0.15

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

Frontmatec.AI

The core library: LLM agents, tools, prompts, and threads for building AI-powered .NET applications. Host-agnostic: the same agent and tools run inside a web app, a WPF desktop app, or an MCP server. This package has no UI and no transport; it's the engine the other Frontmatec.AI.* packages build on.

What's in the box

  • Agent loop: AgentOptions-driven turn loop that calls the model, runs the tools it asks for (in parallel, up to a cap), and feeds the results back until the model produces a final answer.
  • Tools: implement ILlmTool (a name, a JSON-Schema parameter object, and an InvokeAsync), or yield them at runtime from an ILlmToolProvider. StaticLlmToolProvider bridges compile-time ILlmTool singletons into that single provider path.
  • LLM clients: ILlmClientFactory implementations for Anthropic, OpenAI, Gemini and Ollama (local), selected per role via ILlmRoleResolver and LlmRolesOptions. Each provider's own features (prompt caching, thinking, tool search) live inside its client; the rest of the library is the same for all four.
  • Tools on demand: past ToolsInFullUpTo tools, the model gets find_tools and use_tool instead of every tool's schema on every call.
  • Prompts and facts: ISystemPromptBuilder for the agent's static identity, and ILlmFactsBuilder for live facts (who, when, where): the agent sends only the facts that changed. Prompt text is plain C# strings; there is no template engine.
  • Approval: IToolApprovalPolicy; without one, tools marked Ask do not run.
  • Threads: ILlmThreadStore persistence with title generation, IHistoryCompactor to keep long conversations under the context budget, and a history repaired after a stopped turn.

Install

dotnet add package Frontmatec.AI

A tool in 10 lines

public sealed class NowTool : ILlmTool
{
    public LlmToolDefinition Definition => new(
        "now", "Returns the current time.",
        new JsonObject { ["type"] = "object", ["properties"] = new JsonObject() },
        LlmToolApprovalMode.Allow);

    public Task<LlmToolResult> InvokeAsync(JsonNode args, CancellationToken ct = default)
        => Task.FromResult(new LlmToolResult(DateTimeOffset.Now.ToString("O")));
}

Register it like any other service, bridge it to the agent, and it's callable:

services
    .AddSingleton<ILlmTool, NowTool>()
    .AddSingleton<ILlmToolProvider, StaticLlmToolProvider>();

Where it runs

Package Surface
Frontmatec.AI.Tools Ready-made tools (time, web reading, …)
Frontmatec.AI.Windows / .Tools.Windows WPF chat views and desktop host tools
Frontmatec.AI.Mcp Expose your tools to external MCP clients

The repository's docs/ folder explains how the agent loop, tools and clients fit together.

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

Showing the top 5 NuGet packages that depend on Frontmatec.AI:

Package Downloads
Frontmatec.AI.Windows

WPF chat, thread, and tool-approval views for Frontmatec AI agents.

Frontmatec.AI.Tools.Windows

WPF host tools for Frontmatec.AI agents: theme switching, app shutdown, and inline image display.

Frontmatec.AI.Tools

Standard tools for Frontmatec.AI agents: date/time, web reading, XKCD.

Frontmatec.AI.Mcp

Model Context Protocol (MCP) server integration for Frontmatec.AI: expose your ILlmTool tools to external AI clients over MCP via AddFrontmatecMcpServer(), under any MCP transport (HTTP / stdio).

Frontmatec.AI.AspNetCore

ASP.NET Core minimal-API integration for Frontmatec.AI: auth-scoped chat threads with SSE streaming, pluggable into any web app via AddFrontmatecAI() / MapFrontmatecAI().

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.15 78 11/15/2026
0.0.14 3,887 8/18/2026
0.0.12 169 7/28/2026
0.0.11 825 6/4/2026
0.0.10 196 6/3/2026
0.0.9 159 6/3/2026
0.0.7 271 5/27/2026
0.0.6 161 5/27/2026
0.0.5 177 5/26/2026
0.0.4 148 5/26/2026
0.0.3 159 5/22/2026
0.0.2 134 5/20/2026
0.0.1 178 5/19/2026