synwire-checkpoint
Checkpoint persistence traits for Synwire graphs. Enables resumable, forkable, and rewindable workflow runs.
What this crate provides
BaseCheckpointSaver— trait for saving and loading graph snapshots:get_tuple,list,putInMemoryCheckpointSaver— zero-config, process-lifetime checkpoint storeBaseStore— general-purpose K-V store for agent state persistence:get,put,delete,listCheckpointConfig—thread_idnamespaces runs;checkpoint_idtargets a specific snapshotCheckpointTuple— a checkpoint with its config, metadata, and parent referenceCheckpoint— snapshot of all channel values at a given stepCheckpointMetadata— step number, source, writes, parent references
Quick start
[]
= "0.1"
= "0.1"
= { = "1", = ["full"] }
Wire InMemoryCheckpointSaver into a compiled graph:
use ;
use ValueState;
use Arc;
async
Resuming from a checkpoint
Pass the same thread_id on subsequent invoke calls. The graph loads the latest checkpoint for that thread and continues from where it left off.
For durable storage across process restarts, use synwire-checkpoint-sqlite.