Skip to main content

hold_if_api_offline

Function hold_if_api_offline 

Source
async fn hold_if_api_offline(
    state: &AppState,
    auth_via: ReactiveAuthVia,
    req: &InjectionRequest,
    replay: &mut Reservation,
) -> Option<Value>
Expand description

Hold a message to a running agent that is between turns while its model API is offline, until the API answers. It is not injected into a turn that would fail, and it is held under the rules of any hold (a host-tier, full-key sender; never a cron fire or the agent’s own message): a message the hold does not apply to is delivered as before. None delivers.