Checkpoint
Checkpoint is the full checkpoint payload: identifiers + timestamp + state.
Use create_checkpoint(...) to create a new checkpoint instance.
CheckpointStore
CheckpointStore is a protocol describing the storage backend.
Implementations must support:
save(checkpoint)load(checkpoint_id)list_by_run(run_id)get_latest(run_id)
MemoryCheckpointStore
MemoryCheckpointStore is the built-in development store. It is:
- Simple to use
- Process-local
- Not durable
CheckpointPolicy
CheckpointPolicy controls when checkpoints are created:
- On step start
- On step end
- On error
- On interrupt
Serialization helpers
Useserialize_state(...) / deserialize_state(...) when you need a basic JSON serialization layer for checkpoint payloads.