Skip to main content

handle_request_upgrade

Function handle_request_upgrade 

Source
pub(crate) async fn handle_request_upgrade(
    __arg0: State<AppState>,
    caller: Option<Extension<Caller>>,
    __arg2: Json<RequestUpgradeRequest>,
) -> Response
Expand description

POST /api/v1/agent/self/upgrade: the App tool’s upgrade. Starts the upgrade when the user’s own turn asked for it (self_quit::gate_upgrade: as for QuitSelf, but not a Swarm broadcast), otherwise files a sensitive request: the super agent decides and the person can veto the countdown.