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

Function currentTurnInputTokens

packages/agent-core/src/agent/turn/index.ts:1266–1269  ·  view source on GitHub ↗
(usage: TokenUsage | undefined)

Source from the content-addressed store, hash-verified

1264}
1265
1266function currentTurnInputTokens(usage: TokenUsage | undefined): number | undefined {
1267 if (usage === undefined) return undefined;
1268 return inputTotal(usage);
1269}
1270
1271type ToolTelemetryResult = Extract<LoopEvent, { type: 'tool.result' }>['result'];
1272

Callers 1

runOneTurnMethod · 0.85

Calls 1

inputTotalFunction · 0.90

Tested by

no test coverage detected