Define observed cost values and aggregation

This commit is contained in:
2026-11-22 18:24:33 +00:00
parent 3d82cad2c9
commit 6ed0e037c4
13 changed files with 215 additions and 2 deletions

View File

@@ -99,6 +99,7 @@ type RunResult struct {
EffectiveModelParams ExecutionTarget
InputHashes map[string]string
Usage TokenUsage
CostUSD ObservedCost
StartTime time.Time
EndTime time.Time
Duration time.Duration
@@ -328,6 +329,7 @@ type GenerateResponse struct {
Content string
Usage TokenUsage
UsagePresence *TokenUsagePresence
CostUSD *float64
}
// TokenUsagePresence records which token fields a provider reported.