MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / inputTotal

Function inputTotal

packages/kosong/src/usage.ts:21–23  ·  view source on GitHub ↗
(usage: TokenUsage)

Source from the content-addressed store, hash-verified

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

Callers 7

usage.test.tsFile · 0.90
hooks.e2e.test.tsFile · 0.90
abort.e2e.test.tsFile · 0.90
currentTurnInputTokensFunction · 0.90
compactionRoundMethod · 0.90
grandTotalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected