(&mut self, phase: Phase)
| 397 | |
| 398 | impl super::phase::SessionState for AgentSession { |
| 399 | fn set_phase(&mut self, phase: Phase) { |
| 400 | self.phase = phase; |
| 401 | if phase.is_ended() && self.ended_at.is_none() { |
| 402 | self.ended_at = Some(Utc::now()); |
| 403 | } |
| 404 | } |
| 405 | |
| 406 | fn touch_interaction(&mut self) { |
| 407 | self.last_interaction = Some(Utc::now()); |