Interfaces

TokenBudgetRecord

Interface: TokenBudgetRecord

Defined in: src/core/agent/window/types.ts:172

What one OVER-BUDGET visit to tokenBudget put in the ledger.

Extends

Properties

iteration

readonly iteration: number

Defined in: src/core/agent/window/types.ts:121

ReAct iteration this visit belongs to.

Inherited from

WindowRecord.iteration


keepRecentTurns

readonly keepRecentTurns: number

Defined in: src/core/agent/window/types.ts:181

How many recent turns were off-limits to this visit.


measuredTokens

readonly measuredTokens: number

Defined in: src/core/agent/window/types.ts:175

Adapter-reported input tokens of the last call — what tripped the check.


overBudget

readonly overBudget: boolean

Defined in: src/core/agent/window/types.ts:179

True when the measurement was over budget (a drop was attempted).


refusals

readonly refusals: readonly WindowRefusal[]

Defined in: src/core/agent/window/types.ts:130

Every turn that refused to leave, named.

Inherited from

WindowRecord.refusals


removedMessageCount

readonly removedMessageCount: number

Defined in: src/core/agent/window/types.ts:125

How many messages left the window.

Inherited from

WindowRecord.removedMessageCount


removedStageIds

readonly removedStageIds: readonly string[]

Defined in: src/core/agent/window/types.ts:123

runtimeStageIds of the stages that appended the messages that left.

Inherited from

WindowRecord.removedStageIds


strategy

readonly strategy: "token-budget"

Defined in: src/core/agent/window/types.ts:173

WindowStrategy.name of the strategy that decided — 'summarize-oldest', 'sliding-window', 'token-budget', or your own. Narrow on it.

Overrides

WindowRecord.strategy


thresholdTokens

readonly thresholdTokens: number

Defined in: src/core/agent/window/types.ts:177

The budget it was compared against.


windowCharsAfter

readonly windowCharsAfter: number

Defined in: src/core/agent/window/types.ts:128

Inherited from

WindowRecord.windowCharsAfter


windowCharsBefore

readonly windowCharsBefore: number

Defined in: src/core/agent/window/types.ts:127

Window size in chars before / after this visit. Exact, and not tokens.

Inherited from

WindowRecord.windowCharsBefore

On this page