Expand description
Procedure capture types for the learning system.
This module provides types for capturing successful command sequences (procedures) that can be replayed and refined over time.
§Example
use terraphim_types::procedure::{CapturedProcedure, ProcedureStep, ProcedureConfidence};
let mut procedure = CapturedProcedure::new(
"install-rust".to_string(),
"Install Rust toolchain".to_string(),
"Steps to install Rust using rustup".to_string(),
);
procedure.add_step(ProcedureStep {
ordinal: 1,
command: "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh".to_string(),
precondition: Some("curl is installed".to_string()),
postcondition: Some("rustup is installed".to_string()),
working_dir: None,
privileged: false,
tags: vec!["install".to_string()],
});Structs§
- Captured
Procedure - A captured procedure with ordered steps and execution history.
- Procedure
Confidence - Confidence metrics for a procedure based on execution history.
- Procedure
Step - A single step in a captured procedure.