(&mut self, phase: Phase)
| 431 | |
| 432 | impl super::phase::SessionState for AgentSession { |
| 433 | fn set_phase(&mut self, phase: Phase) { |
| 434 | self.phase = phase; |
| 435 | if phase.is_ended() && self.ended_at.is_none() { |
| 436 | self.ended_at = Some(Utc::now()); |
| 437 | } |
| 438 | } |
| 439 | |
| 440 | fn touch_interaction(&mut self) { |
| 441 | self.last_interaction = Some(Utc::now()); |