World¶
sakshi.world
¶
World-model helpers.
SimulationResult
dataclass
¶
WorldSimulator
¶
Simple forward model for predicting action outcomes.
simulate(current_state: dict[str, Any], last_action: dict[str, Any] | None = None) -> SimulationResult
async
¶
Predict the next state given current state and optional action.
detect_discrepancy(predicted: SimulationResult, actual_state: dict[str, Any]) -> dict[str, Any]
¶
Compare predicted state against actual perceived state.
extract_last_action(cycle_trace: CycleTrace) -> dict[str, Any] | None
¶
Extract ACT phase output from a completed cycle trace.