Skip to main content

claim_and_deliver

Function claim_and_deliver 

Source
pub(super) async fn claim_and_deliver(
    base: &str,
    agent_id: &str,
    token: &str,
    http: &Client,
    mstore: &Arc<Store>,
    handler: &'static ReactiveHandler,
    body: PendingResp,
    agent_token: String,
    using_per_agent: bool,
) -> AgentSyncOutcome
Expand description

Claim body’s injections for agent_id and deliver the ones this call won: the second half of sync_agent_reactive, shared with sync_agents_batched. agent_token is the credential the pull used (using_per_agent when it is the agent’s own), retried with the shared token on a rejection exactly as the pull is.