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

Function getBudgetContinuationMessage

src/utils/tokenBudget.ts:66–73  ·  view source on GitHub ↗
(
  pct: number,
  turnTokens: number,
  budget: number,
)

Source from the content-addressed store, hash-verified

64}
65
66export function getBudgetContinuationMessage(
67 pct: number,
68 turnTokens: number,
69 budget: number,
70): string {
71 const fmt = (n: number): string => new Intl.NumberFormat('en-US').format(n)
72 return `Stopped at ${pct}% of token target (${fmt(turnTokens)} / ${fmt(budget)}). Keep working \u2014 do not summarize.`
73}

Callers 2

checkTokenBudgetFunction · 0.85

Calls 1

fmtFunction · 0.85

Tested by

no test coverage detected