Path: redb-route/redb.Route.Llm/Storage/Redb/Schemas/EvalRunProps.cs Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.Llm/Storage/Redb/Schemas/EvalRunProps.cs ---- using redb.Core.Attributes; namespace redb.Route.Llm.Storage.Redb.Schemas; /// /// A persisted eval-harness run. Scenario / fingerprint / score are top-level /// so leaderboard queries do not touch _values. Per-iteration metrics /// and scoring dimensions are stored as typed nested collections — REDB /// persists them natively, no JSON marshalling. /// [RedbScheme("LLM Eval Run")] public class EvalRunProps { /// Identifier assigned by the eval runner — business key. public string RunId { get; set; } = string.Empty; /// Scenario name (e.g. "summarize-pr", "sql-rag"). public string Scenario { get; set; } = string.Empty; /// Agent / prompt / model fingerprint that produced the run. public string AgentFingerprint { get; set; } = string.Empty; /// Aggregate score in [0.0, 1.0]; null when the harness did not score the run. public double? Score { get; set; } /// Aggregated input tokens. public long InputTokens { get; set; } /// Aggregated output tokens. public long OutputTokens { get; set; } /// Total cost in USD. public decimal CostUsd { get; set; } /// When the run finished. public DateTimeOffset CreatedAtUtc { get; set; } /// /// Per-iteration metrics — one entry per agent loop iteration. Typed nested /// array; queryable by iteration number when needed. /// public EvalIterationMetric[] Iterations { get; set; } = []; /// /// Custom scoring dimensions (e.g. "accuracy" = 0.92, /// "latency_p95_ms" = 870). Native dictionary — no JSON. /// public Dictionary? Dimensions { get; set; } /// /// Fixture identifiers / version hashes consumed by the run — preserves /// reproducibility provenance without leaking fixture payloads into the row. /// public Dictionary? Fixtures { get; set; } } /// Per-iteration metric inside an run. public class EvalIterationMetric { /// 1-based iteration index within the run. public int Iteration { get; set; } /// Input tokens consumed by this iteration. public int InputTokens { get; set; } /// Output tokens produced by this iteration. public int OutputTokens { get; set; } /// Wall-clock duration of the iteration in milliseconds. public int DurationMs { get; set; } /// Per-iteration score in [0.0, 1.0]; null when the harness did not score this iteration. public double? Score { get; set; } /// Optional free-form note (judge rationale, failure tag, etc.). public string? Notes { get; set; } }