(&self)
| 199 | } |
| 200 | |
| 201 | pub(super) async fn finish(&self) { |
| 202 | self.active_tools.write().await.clear(); |
| 203 | let mut current = self.current_run_id.lock().await; |
| 204 | if current.as_deref() == Some(self.run_id.as_str()) { |
| 205 | *current = None; |
| 206 | } |
| 207 | } |
| 208 | } |
| 209 | |
| 210 | #[cfg(test)] |