Interface: SessionContextWindowState
Makaio Framework / services-core / SessionContextWindowState
Interface: SessionContextWindowState
Section titled “Interface: SessionContextWindowState”Defined in: ../../../packages/services/core/src/session/context-window/types.ts:14
Per-session context window state, aggregated across agents.
Uses “worst agent” strategy: reports the state of whichever agent has the highest usage percentage.
Properties
Section titled “Properties”currentTokens
Section titled “currentTokens”currentTokens:
number
Defined in: ../../../packages/services/core/src/session/context-window/types.ts:16
Current token count (worst across agents)
lastUpdatedAt
Section titled “lastUpdatedAt”lastUpdatedAt:
number
Defined in: ../../../packages/services/core/src/session/context-window/types.ts:26
Timestamp of last update
level:
"ok"|"warn"|"critical"
Defined in: ../../../packages/services/core/src/session/context-window/types.ts:22
Warning level based on percentage
maxTokens
Section titled “maxTokens”maxTokens:
number
Defined in: ../../../packages/services/core/src/session/context-window/types.ts:18
Max tokens for the model with lowest headroom
percentage
Section titled “percentage”percentage:
number
Defined in: ../../../packages/services/core/src/session/context-window/types.ts:20
Percentage used (0-100)
worstAgentId?
Section titled “worstAgentId?”
optionalworstAgentId?:string
Defined in: ../../../packages/services/core/src/session/context-window/types.ts:24
Agent ID with the highest usage