Skip to main content

finish

Function finish 

Source
pub(super) async fn finish(
    state: &AppState,
    caller: Option<&Caller>,
    id: &str,
    agent_id: &str,
    attempt: i64,
    result: &str,
    update: Option<CardUpdate>,
) -> (StatusCode, Json<Value>)
Expand description

Finish a claimed task, for complete and submit: to Review when it needs review (the agent can’t accept its own work), else done. Answers with the resulting state and the agent’s next waiting task.