ANcpLua.Agents.BitNet.Core
4.0.3
Merged into ANcpLua.Agents.Hosting.BitNet in 5.0.0. The types always lived in the ANcpLua.Agents.Hosting.BitNet namespace, so migrating is a package-reference swap with zero code changes.
dotnet add package ANcpLua.Agents.BitNet.Core --version 4.0.3
NuGet\Install-Package ANcpLua.Agents.BitNet.Core -Version 4.0.3
<PackageReference Include="ANcpLua.Agents.BitNet.Core" Version="4.0.3" />
<PackageVersion Include="ANcpLua.Agents.BitNet.Core" Version="4.0.3" />
<PackageReference Include="ANcpLua.Agents.BitNet.Core" />
paket add ANcpLua.Agents.BitNet.Core --version 4.0.3
#r "nuget: ANcpLua.Agents.BitNet.Core, 4.0.3"
#:package ANcpLua.Agents.BitNet.Core@4.0.3
#addin nuget:?package=ANcpLua.Agents.BitNet.Core&version=4.0.3
#tool nuget:?package=ANcpLua.Agents.BitNet.Core&version=4.0.3
ANcpLua.Agents.BitNet.Core
The client core for the BitNet (bitnet.cpp / llama-server) stack — the
shared base that both ANcpLua.Agents.Hosting.BitNet
and ANcpLua.Agents.Testing.BitNet
build on, with no hosting stack and no provider SDK — it speaks the OpenAI-compatible wire
protocol directly over HttpClient + System.Text.Json, exposing only the vendor-neutral
IChatClient.
| Type | What it does |
|---|---|
BitNetClientOptions |
Endpoint / API-path / model config, with BITNET_URL · BITNET_API_PATH · BITNET_MODEL environment overrides. |
BitNetChatClient |
A dependency-free IChatClient that POSTs straight to the OpenAI-compatible /chat/completions endpoint. No provider SDK; emits max_tokens natively. |
BitNetChatClientFactory |
Create(options) → a configured BitNetChatClient as IChatClient. |
LegacyMaxTokensPolicy |
Obsolete. Was an OpenAI-SDK pipeline shim mirroring max_completion_tokens → max_tokens; the agnostic client emits max_tokens natively, so it is unused. Kept for compatibility. |
using ANcpLua.Agents.Hosting.BitNet;
using Microsoft.Extensions.AI;
IChatClient client = BitNetChatClientFactory.Create(new BitNetClientOptions
{
Endpoint = new Uri("http://localhost:8080"),
Model = "bitnet-b1.58-2B-4T",
});
The types live in the
ANcpLua.Agents.Hosting.BitNetnamespace for API stability (shipped that way in4.0.0-preview.1); this package is the assembly split-out so the client core can be taken without the hosting stack.
BitNet is a local test-double / system-under-test — not an authoritative judge. See
docs/bitnet-not-a-judge.md.
| 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
- ANcpLua.Roslyn.Utilities (>= 2.2.41)
- Microsoft.CodeAnalysis.CSharp (>= 5.6.0)
- Microsoft.Extensions.AI (>= 10.7.0)
- System.ClientModel (>= 1.10.0)
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 | |
|---|---|---|---|
| 4.0.3 | 208 | 7/19/2026 | |
| 4.0.2 | 146 | 7/16/2026 | |
| 4.0.1 | 165 | 6/28/2026 | |
| 4.0.0 | 150 | 6/28/2026 | |
| 4.0.0-preview.4 | 96 | 6/28/2026 | |
| 4.0.0-preview.3 | 96 | 6/27/2026 | |
| 4.0.0-preview.2 | 120 | 6/26/2026 |