async fn start_connect( state: &AppState, agent_id: &str, agent_name: &str, body: &ConnectBody, ) -> Result<Value, String>