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

Function snapshotOutputTokensForTurn

src/bootstrap/state.ts:749–753  ·  view source on GitHub ↗
(budget: number | null)

Source from the content-addressed store, hash-verified

747}
748let budgetContinuationCount = 0
749export function snapshotOutputTokensForTurn(budget: number | null): void {
750 outputTokensAtTurnStart = getTotalOutputTokens()
751 currentTurnTokenBudget = budget
752 budgetContinuationCount = 0
753}
754export function getBudgetContinuationCount(): number {
755 return budgetContinuationCount
756}

Callers 3

onCancelFunction · 0.85
REPLFunction · 0.85
createReplOnQueryFunction · 0.85

Calls 1

getTotalOutputTokensFunction · 0.85

Tested by

no test coverage detected