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

Method set_phase

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

Source from the content-addressed store, hash-verified

397
398impl 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());

Calls 2

is_noneMethod · 0.80
is_endedMethod · 0.45