(&self)
| 269 | } |
| 270 | |
| 271 | async fn cancel_current_turn(&self) -> Result<()> { |
| 272 | let session_id_guard = self.session_id.lock().await; |
| 273 | let turn_id_guard = self.current_turn_id.lock().await; |
| 274 | |
| 275 | if let (Some(session_id), Some(turn_id)) = (&*session_id_guard, &*turn_id_guard) { |
| 276 | tracing::info!("Cancelling turn: session={}, turn={}", session_id, turn_id); |
| 277 | self.coordinator |
| 278 | .cancel_dialog_turn(session_id, turn_id) |
| 279 | .await?; |
| 280 | } |
| 281 | |
| 282 | Ok(()) |
| 283 | } |
| 284 | |
| 285 | async fn create_new_session(&self, agent_type: &str) -> Result<String> { |
| 286 | let mut session_id_guard = self.session_id.lock().await; |
no test coverage detected