Skip to content
Tracon

RunScoreKind

Namespace Tracon · Assembly Tracon.Abstractions.dll

The shape of the value a RunScore carries.

[JsonConverter(typeof(JsonStringEnumConverter<RunScoreKind>))]
public enum RunScoreKind

Binary = 1

A binary score: RunScore.Value is 0 (negative) or 1 (positive).

Categorical = 4

A categorical score: the value is a short label carried by RunScore.TextValue, and RunScore.Value is null.

Numeric = 3

A 0-100 percentage score. Produced by the model-based judge.

Stars = 2

A star rating: RunScore.Value is between 1 and 5.

Written as a name in JSON; stored as smallint in the database. The numeric values are stable and must not change.

The three shapes line up with the three metric shapes of Microsoft.Extensions.AI.Evaluation: BooleanMetric maps to RunScoreKind.Binary, NumericMetric to RunScoreKind.Stars and RunScoreKind.Numeric, and StringMetric to RunScoreKind.Categorical. Only the shape is aligned; no metric type is stored.