Skip to main content

Module checkpoint

Module checkpoint 

Source
Expand description

Task Checkpointing & Persistence

Enables resumable long-running tasks by saving state to disk. Captures:

  • Task description and status
  • Conversation messages
  • Tool call history with timing
  • Git state for reproducibility
  • Error logs for debugging

Checkpoints are stored as JSON files and can be resumed with Agent::resume().

Structs§

CheckpointDelta
Represents the delta/diff between two checkpoints
CheckpointManager
Manager for saving and loading task checkpoints
ErrorLog
Log of an error during execution
GitCheckpointInfo
Git state at checkpoint time
MemoryEntry
A memory entry for serialization
TaskCheckpoint
A complete checkpoint of task state
TaskSummary
Summary of a task for listing
ToolCallLog
Log of a tool execution

Enums§

TaskStatus
Status of a task checkpoint

Constants§

CURRENT_CHECKPOINT_VERSION
Current version of the checkpoint format

Functions§

capture_git_state
Capture current git state for checkpoint