Define observed cost values and aggregation
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user