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

Function emptyUsage

packages/kosong/src/usage.ts:35–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33 * Create a zero-valued TokenUsage.
34 */
35export function emptyUsage(): TokenUsage {
36 return {
37 inputOther: 0,
38 output: 0,
39 inputCacheRead: 0,
40 inputCacheCreation: 0,
41 };
42}
43
44/**
45 * Sum two TokenUsage values.

Callers 7

usage.test.tsFile · 0.90
okResponseFunction · 0.90
zeroUsageFunction · 0.90
generateFunction · 0.90
runTurnFunction · 0.90
chatMethod · 0.90

Calls

no outgoing calls

Tested by 2

okResponseFunction · 0.72
generateFunction · 0.72