Preserve native diagnostic evidence
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
package reporting
|
||||
|
||||
// TokenMetric distinguishes measured zero from unavailable provider usage.
|
||||
type TokenMetric struct {
|
||||
Value int `json:"value"`
|
||||
Known bool `json:"known"`
|
||||
Complete bool `json:"complete"`
|
||||
}
|
||||
|
||||
type LLMUsage struct {
|
||||
Prompt TokenMetric `json:"prompt"`
|
||||
Completion TokenMetric `json:"completion"`
|
||||
Total TokenMetric `json:"total"`
|
||||
Cached TokenMetric `json:"cached"`
|
||||
CacheWrite TokenMetric `json:"cache_write"`
|
||||
}
|
||||
|
||||
type LLMSummary struct {
|
||||
LogicalCalls uint64 `json:"logical_calls"`
|
||||
ProviderAttempts uint64 `json:"provider_attempts"`
|
||||
TransientRetries uint64 `json:"transient_retries"`
|
||||
StructuralRepairs uint64 `json:"structural_repairs"`
|
||||
Usage LLMUsage `json:"usage"`
|
||||
}
|
||||
Reference in New Issue
Block a user