Package com.tnsai.quality.cost
package com.tnsai.quality.cost
-
ClassDescriptionThrown by
CostBudgetEnforcerwhen an LLM call would exceed a configuredCostBudgetunderBudgetPolicy.HARD_STOP(issue #82).What the framework should do when aCostBudgetis exhausted (issue #82).Snapshot of aCostBudget's consumption (issue #82).Coarse health bucket.Declarative budget — "this scope can spend at most X USD per period; here's what to do when exhausted" (issue #82).Hookthat enforces aCostBudgeton every pre-LLM action (issue #82).Resolves aCostBudget's currentBudgetStateby querying itsCostBudgetStorefor cumulative spend (issue #82).SPI for tracking cumulative LLM spend perCostScopeper rolling window (issue #82).Per-spend scope key — a (tenantId, agentId, capabilityId) triple used byCostBudgetStoreto bucket recorded spend (issue #82).Process-localCostBudgetStore(issue #82).