Skip to main content

build_checkpoint_save_tool

Function build_checkpoint_save_tool 

Source
pub fn build_checkpoint_save_tool(
    repo: Arc<Mutex<ShadowRepo>>,
    session_id: String,
    touched_files: Option<Arc<Mutex<TouchedFiles>>>,
    writer: Arc<Mutex<CheckpointLogWriter>>,
    turn_index: Arc<AtomicUsize>,
    log_path: PathBuf,
) -> CheckpointSave
Expand description

Build a CheckpointSave tool wired to the given shared state.