MCPcopy Create free account
hub / github.com/Noumena-Network/code / getTotalInputTokens

Function getTotalInputTokens

src/bootstrap/state.ts:720–722  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

718}
719
720export function getTotalInputTokens(): number {
721 return sumBy(Object.values(STATE.modelUsage), 'inputTokens')
722}
723
724export function getTotalOutputTokens(): number {
725 return sumBy(Object.values(STATE.modelUsage), 'outputTokens')

Callers 5

saveCurrentSessionCostsFunction · 0.85
hasPermissionsToUseToolFunction · 0.85
REPLFunction · 0.85
dispatchReplSubmitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected