Skip to main content

quota_holds

Function quota_holds 

Source
pub(super) fn quota_holds(
    identity: &Store,
    req: &InjectionRequest,
    target_uid: &str,
    target_slug: &str,
    activity: Option<(bool, Option<i64>)>,
    now_ms: i64,
) -> bool
Expand description

Whether quota mode holds a routine message to a running agent: no turn in flight (a message that joins a turn costs no new context read), and it does not hand the target work. activity is cold_hold::session_activity’s answer, None with nothing running. An urgent message is never held.