Skip to main content

switch_account

Function switch_account 

Source
pub(crate) async fn switch_account(
    state: AppState,
    caller: String,
    req: AgentAccountSwitchReq,
) -> Result<AgentAccountSwitchResult, SwitchError>
Expand description

agent.account.switch for a caller that is not on the RPC engine (the Identity tool’s HTTP route). caller is the agent’s slug. Runs off the async workers.