Skip to main content

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
Use it for tests and local experiments.

CheckpointPolicy

CheckpointPolicy controls when checkpoints are created:
  • On step start
  • On step end
  • On error
  • On interrupt

Serialization helpers

Use serialize_state(...) / deserialize_state(...) when you need a basic JSON serialization layer for checkpoint payloads.

Next steps