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

Function addUsage

apps/vis/server/src/lib/context-projector.ts:560–565  ·  view source on GitHub ↗
(into: TokenUsage, src: TokenUsage)

Source from the content-addressed store, hash-verified

558}
559
560function addUsage(into: TokenUsage, src: TokenUsage): void {
561 (into as any).inputOther += src.inputOther;
562 (into as any).output += src.output;
563 (into as any).inputCacheRead += src.inputCacheRead;
564 (into as any).inputCacheCreation += src.inputCacheCreation;
565}
566
567// ── Tool-result normalization (mirror of agent-core) ─────────────────────────
568// These replicate agent-core's `toolResultOutputForModel` so vis's model-view

Callers 1

projectContextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected