(usage: TokenUsage)
| 19 | * Compute total input tokens (other + cache read + cache creation). |
| 20 | */ |
| 21 | export function inputTotal(usage: TokenUsage): number { |
| 22 | return usage.inputOther + usage.inputCacheRead + usage.inputCacheCreation; |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * Compute grand total tokens (input total + output). |
no outgoing calls
no test coverage detected