HoneAI.Core
0.6.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package HoneAI.Core --version 0.6.0
NuGet\Install-Package HoneAI.Core -Version 0.6.0
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.6.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="HoneAI.Core" Version="0.6.0" />
<PackageReference Include="HoneAI.Core" />
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.6.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: HoneAI.Core, 0.6.0"
#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.6.0
#: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.6.0
#tool nuget:?package=HoneAI.Core&version=0.6.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
HoneAI.Core
The implementations for HoneAI — tiers of judges with measured trust and provenance — behind the HoneAI.Abstractions contracts. No third-party dependencies.
What it ships
TieredRouter<TInput, TValue>(HoneAI.Routing) — theIReasoningRouterover any number of tiers: a tier below the top settles only where the policy snapshot puts it inActiveorStablefor the input's slice, and only an answer the settlement policy lets it settle; otherwise the decision goes up without the lower answer. Every lower-tier settlement is drawn for a recheck at π.RecheckDraw— the deterministic draw: SHA-256 of the decision id and snapshot version → [0, 1) < π.TieredRouter.RecheckAsyncjudges a drawn decision again at a tier above, blind — told it is a recheck, given no hints, no lower answer and no abstain quantile — and settles nothing.PolicySnapshotJson— the canonical JSON of a policy snapshot (entries by tier and slice, rates by knob, times in UTC) and its SHA-256 content hash, for carrying a snapshot to a judging site and checking it is the one issued. Signing is the consumer's.HoneAI.Trust— earning the right to settle:TrustLedger/TeacherLedger(what rechecks and planted items show),TrustLifecycle(shadow → active → stable, and back),RecheckRate(the recheck probability a promise needs),RecheckBudget(sharing the tier above's capacity),PolicySnapshotIssuer, andTrustController.Close, which runs them in order at a window's end.Judge.From/Judge.Constant/MemoryJudge<,>— reference judges: a function, a constant, a memory of settled answers (System1).SettlementPolicy/SliceKey— categorical, tolerance and specification-limit policies; slice keys from a function.HttpMLoopClient—IMLoopClientover MLoop's REST API (mloop serve). MLoop is reached over the wire, never referenced as an SDK. Construct it with anHttpClientwhoseBaseAddressand bearer token you configure (e.g. viaIHttpClientFactory).JsonlProvenanceSink— file-backedIProvenanceSinkappending each assessment as one JSON line. Append-only, Git-friendly.InMemoryHitlGate— in-processIHitlGatebacked by aTaskCompletionSourceper open review.ModelLifecycle— orchestrates train → poll → review (HITL) → promote over anIMLoopClientand anIHitlGate, recording each stage to an optionalIProvenanceSink.RolePersona— builds domain-neutral persona instructions for a trust-loop role, with the consumer's domain colour injected into a{Domain}slot.
Example — two tiers and a person
using HoneAI;
using HoneAI.Routing;
var memory = new MemoryJudge<Item, string>(
new Tier { Id = "memory", Kind = JudgeKind.System1, Version = "1", CostRank = 0 }, item => item.Key);
var model = Judge.From<Item, string>(
new Tier { Id = "model", Kind = JudgeKind.Ml, Version = "exp-012", CostRank = 1 },
async (item, ctx, ct) => await PredictAsync(item, ct));
var person = Judge.From<Item, string>(
new Tier { Id = "person", Kind = JudgeKind.Human, Version = "1", CostRank = 2 },
async (item, ctx, ct) => await ReviewAsync(item, ct));
var router = new TieredRouter<Item, string>(
new IJudge<Item, string>[] { memory, model, person },
SettlementPolicy.Categorical(new[] { "OK" }, mustCatch: new[] { "NG" }),
SliceKey.From<Item>("line-v1", item => item.Line),
decisionIdOf: item => item.Id,
snapshot: () => snapshot);
var decision = await router.DecideAsync(item);
// decision.Prediction — the settled value and its provenance
// decision.Steps — every tier's verdict, including what a tier in shadow would have answered
License
Apache-2.0
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- HoneAI.Abstractions (>= 0.6.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on HoneAI.Core:
| Package | Downloads |
|---|---|
|
UVision.Hosting
U-Vision AI 비전 검사 — 임베드 가능한 ASP.NET Core 기능 라이브러리(빌드된 PWA 임베드 + AddUVision/UseUVision). |
GitHub repositories
This package is not used by any popular GitHub repositories.