ANcpLua.Agents.Testing.BitNet 4.0.1

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

ANcpLua.Agents.Testing.BitNet

xUnit v3 fixture that auto-manages a local BitNet (bitnet.cpp llama-server) Docker container and exposes an IChatClient for tests.

[Collection("BitNet")]
public sealed class MyTests(BitNetFixture bitnet)
{
    [Fact]
    public async Task Generates()
    {
        Assert.SkipUnless(bitnet.IsAvailable, "BitNet not running");
        var response = await bitnet.ChatClient!.GetResponseAsync("hello");
        Assert.NotNull(response.Text);
    }
}

Endpoint discovery: BITNET_URL → auto-managed digest-pinned Docker container (inspect-before-pull, /health wait) → legacy http://localhost:8080.

BitNet is a local test-double / system-under-test — not an authoritative judge. A 1.58-bit 2B model is below the reliable LLM-as-judge threshold (~≥14B) and, on emulated CPU, impractically slow. See the repo's docs/bitnet-not-a-judge.md.

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
4.0.1 99 6/28/2026
4.0.0 90 6/28/2026
4.0.0-preview.4 51 6/28/2026
4.0.0-preview.3 51 6/27/2026
4.0.0-preview.2 74 6/26/2026
4.0.0-preview.1 54 6/26/2026