LogoRobo.js
Packages@robojs/ai

TokenLimitRule

Interface: TokenLimitRule

Configuration describing a single token limit rule.

Properties

PropertyTypeDescription
maxTokensnumberMaximum tokens allowed within the window.
message?stringOptional message surfaced when the limit is exceeded.
mode?TokenLimitModeEnforcement mode. Use block to throw TokenLimitError, or warn to emit events without blocking execution.
windowTokenSummaryWindowSliding window in which the limit is evaluated.

On this page