Skip to main content

Function: getRateLimitBannerSeverity()

getRateLimitBannerSeverity(info, thresholds?): "critical" | "warning" | "none"

Defined in: packages/agentos/src/types/rateLimitTypes.ts:89

Determine banner severity based on remaining percentage and thresholds.

Parameters

info

RateLimitInfo

Rate limit information

thresholds?

RateLimitBannerThresholds = DEFAULT_RATE_LIMIT_BANNER_THRESHOLDS

Banner threshold configuration (optional, uses defaults)

Returns

"critical" | "warning" | "none"

'none' | 'warning' | 'critical'