MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / set_phase

Method set_phase

atomic-agent/src/turn/session.rs:427–432  ·  view source on GitHub ↗
(&mut self, phase: Phase)

Source from the content-addressed store, hash-verified

425
426impl 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());

Calls 2

is_noneMethod · 0.80
is_endedMethod · 0.45