Skip to main content

handle_agent_identity_switch

Function handle_agent_identity_switch 

Source
pub(super) async fn handle_agent_identity_switch(
    __arg0: State<AppState>,
    caller: Option<Extension<Caller>>,
    __arg2: Json<AgentIdentitySwitchRequest>,
) -> impl IntoResponse
Expand description

POST /api/v1/agent/identity/switch — move an agent (the caller by default) to another signed-in account of its provider, now or when its turn ends. Backs Identity with action switch; the audit row names the caller (SPEC_ACCOUNT_SWITCH_FROM_THE_COMPOSER_NO_BIND_2026_10_26.md §3.4).