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

Method TotalInputTokens

internal/testutil/mock_recorder.go:88–96  ·  view source on GitHub ↗

TotalInputTokens returns the sum of input tokens across all recorded token usages.

()

Source from the content-addressed store, hash-verified

86
87// TotalInputTokens returns the sum of input tokens across all recorded token usages.
88func (m *MockRecorder) TotalInputTokens() int64 {
89 m.mu.Lock()
90 defer m.mu.Unlock()
91 var total int64
92 for _, el := range m.tokenUsages {
93 total += el.Input
94 }
95 return total
96}
97
98// TotalOutputTokens returns the sum of output tokens across all recorded token usages.
99func (m *MockRecorder) TotalOutputTokens() int64 {

Callers 4

TestAnthropicMessagesFunction · 0.80
TestOpenAIInjectedToolsFunction · 0.80

Calls

no outgoing calls

Tested by 4

TestAnthropicMessagesFunction · 0.64
TestOpenAIInjectedToolsFunction · 0.64