LogoRobo.js
Packages@robojs/ai

TokenLimitState

Interface: TokenLimitState

Snapshot describing the real-time state of token limits for a model.

Properties

PropertyTypeDescription
blockedbooleanIndicates whether requests should be blocked under the configured rule.
message?stringOptional message derived from the active rule.
modelstringModel identifier.
rule?TokenLimitRuleActive rule applied to the model, if one exists.
windowsRecord<TokenSummaryWindow, { remaining: number; total: number; windowKey: string; }>Per-window state including remaining tokens and current window key.

On this page