Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Record ¶
type Record struct {
InputTokens int64
OutputTokens int64
TotalTokens int64
CachedTokens int64
ReasoningTokens int64
InputCost float64
OutputCost float64
TotalCost float64
}
Record contains a single provider usage event, normalized to the Console schema.
type Usage ¶
type Usage struct {
// contains filtered or unexported fields
}
Usage is the central run-level token and cost accumulator for agent harnesses.
func New ¶
func New(existing *console.AgentRunUsage) *Usage
func (*Usage) Attributes ¶
func (u *Usage) Attributes() *console.AiUsageAttributes
func (*Usage) RecordUsage ¶
Click to show internal directories.
Click to hide internal directories.