Packages@robojs/ai
TokenLimitRule
Interface: TokenLimitRule
Configuration describing a single token limit rule.
Properties
| Property | Type | Description |
|---|---|---|
maxTokens | number | Maximum tokens allowed within the window. |
message? | string | Optional message surfaced when the limit is exceeded. |
mode? | TokenLimitMode | Enforcement mode. Use block to throw TokenLimitError, or warn to emit events without blocking execution. |
window | TokenSummaryWindow | Sliding window in which the limit is evaluated. |
