TotalOutputTokens returns the sum of output tokens across all recorded token usages.
()
| 97 | |
| 98 | // TotalOutputTokens returns the sum of output tokens across all recorded token usages. |
| 99 | func (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. |
| 110 | func (m *MockRecorder) TotalCacheReadInputTokens() int64 { |
no outgoing calls