Skip to main content

Module loop_types

Module loop_types 

Source
Expand description

Core types for the reasoning loop

Defines observations, proposed actions, loop configuration, state, and recovery strategies for the observe-reason-gate-act cycle.

Structs§

BufferedJournal
In-memory journal that retains entries in a bounded ring buffer.
JournalEntry
A journal entry for durable execution.
LoopConfig
Configuration for a reasoning loop instance.
LoopResult
The final result of a completed reasoning loop.
LoopState
Runtime state of the reasoning loop.
Observation
An observation that feeds into the reasoning step.

Enums§

JournalError
Errors from the journal system.
LoopDecision
The policy gate’s decision for a proposed action.
LoopEvent
Events emitted during loop execution for observability.
ProposedAction
An action proposed by the reasoning step, pending policy evaluation.
RecoveryStrategy
Strategy for recovering from tool execution failures.
TerminationReason
Why the loop terminated.

Traits§

JournalWriter
Trait for writing journal entries.