An abstract base class defining the contract for state persistence and
recovery in HydraR. Checkpointers allow a DAG to be paused and resumed
across sessions by saving the AgentState after each node execution.
Methods
Method put()
Persist state to the checkpointer.
Method get()
Examples
if (FALSE) { # \dontrun{
# 1. Abstract interface usage (internal)
# Checkpointers are passed to dag_create() to enable state persistence.
dag <- dag_create(
checkpointer = RDSSaver$new(dir = "checkpoints"),
message_log = JSONLMessageLog$new(file = "logs/messages.jsonl")
)
} # }