Class CostBudgetProps

Assembly: redb.Route.Llm.dll

Running cost / token totals scoped to a conversation. One row per
conversation per billing period — is the
boundary that lets a daily / monthly reset roll the counters. The
conversation id lives on the value_string column of _objects
(partial index on PostgreSQL/SQLite; no index on MSSQL) and, normalized, in
value_unique (per-scheme unique — one budget row per conversation),
not in props.

[RedbScheme("LLM Cost Budget")]
public class CostBudgetProps

Inheritance

Object→CostBudgetProps

Properties

CostUsd

Aggregated cost in USD.

public decimal CostUsd { get; set; }

InputTokens

Aggregated input tokens.

public long InputTokens { get; set; }

OutputTokens

Aggregated output tokens.

public long OutputTokens { get; set; }

PeriodStartUtc

Optional billing-period anchor (e.g. day or month start, UTC).

public DateTimeOffset? PeriodStartUtc { get; set; }

UpdatedAtUtc

When the row was last updated.

public DateTimeOffset UpdatedAtUtc { get; set; }