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

Method end_turn

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

327 ///
328 /// Returns the turn number that just completed (1-indexed).
329 pub fn end_turn(&mut self) -> u32 {
330 self.turn_count += 1;
331 self.current_turn_started_at = None;
332 self.turn_count
333 }
334
335 /// Returns the duration of the current turn in milliseconds, if a turn is active.
336 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