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

Function resetCostState

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

Source from the content-addressed store, hash-verified

878}
879
880export function resetCostState(): void {
881 STATE.totalCostUSD = 0
882 STATE.totalAPIDuration = 0
883 STATE.totalAPIDurationWithoutRetries = 0
884 STATE.totalToolDuration = 0
885 STATE.startTime = Date.now()
886 STATE.totalLinesAdded = 0
887 STATE.totalLinesRemoved = 0
888 STATE.hasUnknownModelCost = false
889 STATE.modelUsage = {}
890 STATE.promptId = null
891}
892
893/**
894 * Sets cost state values for session restore.

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected