historyBudgetTokens
function historyBudgetTokens(contextWindow): number;Defined in: core/src/context.ts:90
How much of the window the history BEHIND the current turn may spend: a tenth, floored so a small window still gets a usable memory. The tail stays verbatim and the summary is short, so the rest is what folding buys back.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
contextWindow |
number |
Returns
Section titled “Returns”number