MCPcopy Create free account
hub / github.com/coder/aibridge / TotalOutputTokens

Method TotalOutputTokens

internal/testutil/mock_recorder.go:99–107  ·  view source on GitHub ↗

TotalOutputTokens returns the sum of output tokens across all recorded token usages.

()

Source from the content-addressed store, hash-verified

97
98// TotalOutputTokens returns the sum of output tokens across all recorded token usages.
99func (m *MockRecorder) TotalOutputTokens() int64 {
100 m.mu.Lock()
101 defer m.mu.Unlock()
102 var total int64
103 for _, el := range m.tokenUsages {
104 total += el.Output
105 }
106 return total
107}
108
109// TotalCacheReadInputTokens returns the sum of cache read input tokens across all recorded token usages.
110func (m *MockRecorder) TotalCacheReadInputTokens() int64 {

Callers 4

TestAnthropicMessagesFunction · 0.80
TestOpenAIInjectedToolsFunction · 0.80

Calls

no outgoing calls

Tested by 4

TestAnthropicMessagesFunction · 0.64
TestOpenAIInjectedToolsFunction · 0.64