CatExperiments 0.0.1

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

CatExperiments

.NET SDK and runner for cat-experiments — a CLI-driven evaluation engine for LLM applications.

A cat-experiments project is an Exe that references this package. Mark task and evaluator methods with attributes; the cat-experiments CLI discovers, runs, and scores them.

Install

dotnet add package CatExperiments

Minimal project

MyExperiment/
├── MyExperiment.csproj
├── Program.cs
└── Experiment.cs

MyExperiment.csproj:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net8.0</TargetFramework>
    <RollForward>Major</RollForward>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="CatExperiments" Version="*" />
  </ItemGroup>
</Project>

Program.cs:

await Cat.Experiments.Runner.RunAsync(args);

Experiment.cs:

using Cat.Experiments;

public static class MyExperiment
{
    public static string Name = "My Experiment";

    [Task]
    public static TaskOutput Run(TaskInput input)
    {
        var question = input.Input.TryGetValue("question", out var q) ? q.GetString() ?? "" : "";
        return new TaskOutput(output: new Dictionary<string, object?>
        {
            ["answer"] = question.ToUpperInvariant(),
        });
    }

    [Evaluator]
    public static EvalOutput ExactMatch(EvalInput input)
    {
        var expected = input.ExpectedOutput is { } ex && ex.TryGetProperty("answer", out var e)
            ? e.GetString() ?? "" : "";
        var actual = input.ActualOutput.ValueKind == System.Text.Json.JsonValueKind.Object &&
                     input.ActualOutput.TryGetProperty("answer", out var a)
            ? a.GetString() ?? "" : "";
        return new EvalOutput(
            score: expected == actual ? 1.0 : 0.0,
            label: expected == actual ? "match" : "mismatch");
    }
}

Run

Install the CLI (Homebrew or go install), then:

cat-experiments run MyExperiment/MyExperiment.csproj --dataset data.jsonl --output-dir results/

The CLI builds the project (incrementally), spawns the compiled assembly, and drives it over a JSON-lines protocol on stdin/stdout.

License

MIT

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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.0.1 102 5/14/2026