Skip to main content

Module weights

Module weights 

Source
Expand description

Per-agent routing weights and rate-limit recovery.

RateLimitState tracks a single agent’s current routing weight and recovers it over time after rate-limit events.

AgentWeights aggregates per-agent states and provides weighted probabilistic selection via weighted_select.

Structs§

AgentWeights
Tracks per-agent weights for weighted round-robin routing.
RateLimitState
Rate limit state for a single agent.