Skip to main content

Module turn

Module turn 

Source
Expand description

Turn-based state machine for agent control flow.

Replaces flat loop break/continue/return with explicit TurnStateTurnOutcomeTurnAction transitions driven by a pure TurnTransition::resolve function.

This makes the agent loop’s control flow auditable, testable, and extensible without touching the core executor.

Structs§

TurnTransition
Pure resolver mapping (TurnState, TurnOutcome)TurnAction.

Enums§

TurnAction
Action the loop executor should take after a transition.
TurnOutcome
Outcome of a turn — what the state produced.
TurnState
States in the agent turn cycle.