Skip to main content
The CheckpointManager saves agent state after each tool roundtrip, allowing the host to inspect or restore snapshot data. Rollback does not resume execution, replay a driver, or undo external effects. Use durable execution for a separately designed recovery lifecycle.

Configuration

Checkpoint Data

Each checkpoint captures:
  • messages — the full conversation history at that point
  • tokenUsage — cumulative token usage
  • sessionState — the agent’s session state
  • roundtrip — which roundtrip this checkpoint was taken after
  • timestamp — when the checkpoint was created

REST Endpoints

Programmatic Usage

Storage

By default, checkpoints use in-memory storage. For persistence, pass any StorageDriver: