Skip to main content

Module limit_check_api

Module limit_check_api 

Source
Expand description

Identity action check_limits: look again now at the agents out of quota (task #2648). Identity with action check_limits: look again, now, at the agents marked out of quota, for an agent that learns the plan was raised or the quota refilled (task #2648). Without it the only way to start a check was to know that an urgent message does.

The same check as the Swarm’s “Check now” (limit_probe::check_limited): each limited agent gets a small turn, staggered by account, and one that works clears the limit, wakes what was held for the agent and clears the account’s other panes (limit_evidence). It sends nothing in anyone’s name, so any agent may ask.

Structs§

CheckLimitsFailure 🔒
CheckLimitsResult 🔒
What check_limits did.

Functions§

check_account_limits 🔒
check_blocking off the async workers.
check_blocking 🔒
Checks the agents out of quota: those on account (its id, label or email) when given, else all of them. BLOCKING.
limited_panes 🔒
The panes out of quota that a check is asked for: (block id, agent name, account id) of every pane of blocks that is limited by its plan. BLOCKING.