Skip to main content

Module rate

Module rate 

Source

Structs§

RateConfig
RateLimit
RateState

Enums§

RateError

Functions§

check_and_record
Check if a tool call is within rate limits and record it. Returns Ok(()) if allowed, Err(RateError::Exceeded) if rate limited.
parse_rate_config
Parse rate claims from JWT AtiNamespace.rate HashMap. Format: {“tool:github:”: “10/hour”, “tool:”: “100/hour”}
parse_rate_spec
Parse a rate spec like “10/hour” into a RateLimit.