pub(crate) fn switch_model( state: &AppState, req: &AgentModelSwitchReq, ) -> Result<AgentModelSwitchResult, String>