(&mut self)
| 251 | } |
| 252 | |
| 253 | fn cancel_turn(&mut self) -> Pin<Box<dyn Future<Output = AgentResult<()>> + Send + '_>> { |
| 254 | Box::pin(async move { |
| 255 | self.pre_snapshot = None; |
| 256 | self.active_session = None; |
| 257 | Ok(()) |
| 258 | }) |
| 259 | } |
| 260 | |
| 261 | fn is_active(&self) -> bool { |
| 262 | self.pre_snapshot.is_some() |
no outgoing calls