pub struct AttemptRecord {
pub step_purpose: String,
pub action: PlannedAction,
pub succeeded: bool,
pub error: Option<String>,
pub data: Value,
pub next_action_hint: Option<NextActionHint>,
}Expand description
What happened when an earlier step ran. The planner sees the full history on every decide_next call so it can reason about what’s already been tried.
Fields§
§step_purpose: StringShort description of what the step was trying to do (taken from Step.purpose so the planner sees its own intent).
action: PlannedActionSerialized action that was dispatched.
succeeded: boolTrue = executor reported success; false = reported failure.
error: Option<String>Error message on failure, Ok data on success (truncated).
data: Value§next_action_hint: Option<NextActionHint>Categorical recovery hint promoted from the verify_done grader
(or other runtime checks) up into the AttemptRecord so the
planner sees it as a top-level field rather than buried in the
error string. None for ordinary action-failure attempts;
populated for verify_done-rejected Done attempts and similar
runtime-grader rejections. See crate::NextActionHint for
the variants and their planner-side contract.
Trait Implementations§
Source§impl Clone for AttemptRecord
impl Clone for AttemptRecord
Source§fn clone(&self) -> AttemptRecord
fn clone(&self) -> AttemptRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more