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

Method end_turn

atomic-agent/src/turn/session.rs:357–361  ·  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

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

Callers 4

test_end_turnFunction · 0.45
test_serde_roundtripFunction · 0.45
test_full_lifecycleFunction · 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