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

Method end_turn

atomic-agent/src/turn/session.rs:363–367  ·  view source on GitHub ↗

Mark the end of the current turn and increment the turn count. Returns the turn number that just completed (1-indexed).

(&mut self)

Source from the content-addressed store, hash-verified

361 ///
362 /// Returns the turn number that just completed (1-indexed).
363 pub fn end_turn(&mut self) -> u32 {
364 self.turn_count += 1;
365 self.current_turn_started_at = None;
366 self.turn_count
367 }
368
369 /// Returns the duration of the current turn in milliseconds, if a turn is active.
370 pub fn current_turn_duration_ms(&self) -> Option<u64> {

Callers 5

test_end_turnFunction · 0.45
test_serde_roundtripFunction · 0.45
test_full_lifecycleFunction · 0.45
handle_session_endMethod · 0.45
handle_turn_endMethod · 0.45

Calls

no outgoing calls

Tested by 3

test_end_turnFunction · 0.36
test_serde_roundtripFunction · 0.36
test_full_lifecycleFunction · 0.36