Legion. RateLimiter. ExceededError exception
(Legion v0.5.0)
View Source
Raised by a Legion.RateLimiter when a rule denies a call.
Carries the :agent_id, the :identity and :policy of the rule that
denied it, the :usage the adapter measured for it, and the :violations -
the policy fields that were exceeded, e.g. [:max_agents]. Legion rescues it
to cancel the turn with {:rate_limited, violations}.