Skip to main content

append_trajectory_step

Function append_trajectory_step 

Source
pub fn append_trajectory_step(
    path: &Path,
    trajectory_id: &str,
    kind: TrajectoryStepKind,
    description: &str,
    actor: &str,
    references: Vec<String>,
    reason: &str,
) -> Result<StateCommandReport, String>
Expand description

v0.50: Append a step to an existing Trajectory. Step kind one of hypothesis | tried | ruled_out | observed | refined. Idempotent on duplicate step content-addresses (so an agent that re-runs an append after a crash doesn’t double-append).