Frontmatec.AI
0.0.11
dotnet add package Frontmatec.AI --version 0.0.11
NuGet\Install-Package Frontmatec.AI -Version 0.0.11
<PackageReference Include="Frontmatec.AI" Version="0.0.11" />
<PackageVersion Include="Frontmatec.AI" Version="0.0.11" />
<PackageReference Include="Frontmatec.AI" />
paket add Frontmatec.AI --version 0.0.11
#r "nuget: Frontmatec.AI, 0.0.11"
#:package Frontmatec.AI@0.0.11
#addin nuget:?package=Frontmatec.AI&version=0.0.11
#tool nuget:?package=Frontmatec.AI&version=0.0.11
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 anInvokeAsync), or yield them at runtime from anILlmToolProvider.StaticLlmToolProviderbridges compile-timeILlmToolsingletons into that single provider path. - LLM clients —
ILlmClientFactoryimplementations for Anthropic and Ollama (local), selected per role viaILlmRoleResolverandLlmRolesOptions. - Prompts —
IPromptTemplate/PromptTemplateStore(Liquid templates) andISystemPromptBuilder. - Threads —
ILlmThreadStorepersistence with title generation andIHistoryCompactorto keep long conversations under the context budget.
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.AspNetCore |
Chat endpoints + SSE streaming for a web app |
Frontmatec.AI.Windows / .Tools.Windows |
WPF chat views and desktop host tools |
Frontmatec.AI.Mcp |
Expose your tools to external MCP clients |
See the repository docs/ for how the agent loop, tools, and
clients fit together.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
-
net10.0
- Fluid.Core (>= 2.31.0)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.8)
- Microsoft.Extensions.Options (>= 10.0.8)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.8)
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
Standard tools for Frontmatec.AI agents — date/time, web reading, XKCD. |
|
|
Frontmatec.AI.Tools.Windows
WPF host tools for Frontmatec.AI agents — theme switching, app shutdown, and inline image display. |
|
|
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(). |
|
|
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). |
GitHub repositories
This package is not used by any popular GitHub repositories.