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

Function contextFill

apps/vis/web/src/lib/analysis.ts:184–186  ·  view source on GitHub ↗

Context-window fill after a step, mirroring agent-core ContextMemory.

(u: TokenUsage)

Source from the content-addressed store, hash-verified

182
183/** Context-window fill after a step, mirroring agent-core ContextMemory. */
184function contextFill(u: TokenUsage): number {
185 return u.inputCacheRead + u.inputCacheCreation + u.inputOther + u.output;
186}
187
188function firstText(input: readonly unknown[] | undefined): string {
189 if (!input) return '';

Callers 1

analyzeWireFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected