HoneAI.Core 0.2.1

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

HoneAI.Core

The assembly layer for HoneAI — the "provenance-bearing prediction" middleware. Composes an MLoop AutoML backend (L2, reached over HTTP/MCP transport) and an IChatClient frontier model (L3) behind the HoneAI.Abstractions contracts.

What it ships

  • DualCheckRouter<TQuery, TResult> — the two-layer IReasoningRouter: run the cheaper layer first, escalate to the costlier one only when confidence is insufficient, and flag disagreement or residual low confidence for human review.
  • HttpMLoopClientIMLoopClient over MLoop's REST API (mloop serve). MLoop is reached over the wire, never referenced as an SDK. Construct it with an HttpClient whose BaseAddress and bearer token you configure (e.g. via IHttpClientFactory).
  • JsonlProvenanceSink — file-backed IProvenanceSink appending each assessment as one JSON line. Append-only, Git-friendly.
  • InMemoryHitlGate — in-process IHitlGate backed by a TaskCompletionSource per open review.
  • ModelLifecycle — orchestrates train → poll → review (HITL) → promote over an IMLoopClient and an IHitlGate, recording each stage to an optional IProvenanceSink.
  • RolePersona — builds domain-neutral persona instructions for a trust-loop role, with the consumer's domain colour injected into a {Domain} slot.

Example — confidence-gated dual-check

using HoneAI;

var mloop = new HttpMLoopClient(httpClient);            // HTTP client → `mloop serve`
var router = new DualCheckRouter<MyQuery, MyResult>(
    lower:     (q, ct) => CallMLoopAsync(mloop, q, ct), // L2 AutoML, runs first
    escalate:  (q, lower, ct) => AskLlmAsync(q, ct),    // L3 LLM, only when unsure
    confidenceThreshold: 0.8);

var traced = await router.RouteAsync(query);
if (traced.Provenance.RequiresReview)
{
    // low confidence or layer disagreement → route to a human via IHitlGate
}

License

Apache-2.0

Product 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. 
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.2.1 115 7/17/2026
0.2.0 152 7/8/2026