(&mut self, phase: Phase)
| 425 | |
| 426 | impl super::phase::SessionState for AgentSession { |
| 427 | fn set_phase(&mut self, phase: Phase) { |
| 428 | self.phase = phase; |
| 429 | if phase.is_ended() && self.ended_at.is_none() { |
| 430 | self.ended_at = Some(Utc::now()); |
| 431 | } |
| 432 | } |
| 433 | |
| 434 | fn touch_interaction(&mut self) { |
| 435 | self.last_interaction = Some(Utc::now()); |