Dsxir. Predictor. CodeExec. State
(dsxir v0.4.0)
Copy Markdown
Accumulator for the Dsxir.Predictor.CodeExec.Engine reduce_while loop.
Pure data. trajectory grows newest-last; each entry is one (code, outcome)
attempt.
Summary
Functions
The most recent failed attempt, or nil if none have failed.
The Dune failure type to stamp on CodeExecutionError when the loop is
exhausted: the shared type when every failure had the same type, else
:max_iters.
Records a successful run: appends the entry, stores the result, sets done?.
Appends a failed attempt to the trajectory and bumps iter.
Types
@type t() :: %Dsxir.Predictor.CodeExec.State{ code: String.t() | nil, done?: boolean(), iter: non_neg_integer(), result: result() | nil, trajectory: [entry()] }
Functions
The most recent failed attempt, or nil if none have failed.
The Dune failure type to stamp on CodeExecutionError when the loop is
exhausted: the shared type when every failure had the same type, else
:max_iters.
Records a successful run: appends the entry, stores the result, sets done?.
Appends a failed attempt to the trajectory and bumps iter.