LogoRobo.js
Packages@robojs/ai

TokenLimitBreach

Interface: TokenLimitBreach

Snapshot describing how a limit was breached.

Properties

PropertyTypeDescription
exceededBynumberTokens beyond the configured limit.
maxTokensnumberConfigured maximum tokens for the window.
message?stringMessage defined by the rule, if any.
modeTokenLimitModeEnforcement mode active for the breach.
modelstringModel that triggered the breach.
previousTotalnumberTotal prior to the latest usage being recorded.
remainingBeforenumberTokens remaining before the latest update.
totalnumberNew total after recording the usage.
windowTokenSummaryWindowWindow in which the limit was exceeded.
windowKeystringWindow key (e.g., ISO day or ISO week) identifying the period.

On this page