Packages@robojs/ai
TokenLimitState
Interface: TokenLimitState
Snapshot describing the real-time state of token limits for a model.
Properties
| Property | Type | Description |
|---|---|---|
blocked | boolean | Indicates whether requests should be blocked under the configured rule. |
message? | string | Optional message derived from the active rule. |
model | string | Model identifier. |
rule? | TokenLimitRule | Active rule applied to the model, if one exists. |
windows | Record<TokenSummaryWindow, { remaining: number; total: number; windowKey: string; }> | Per-window state including remaining tokens and current window key. |
