Interface: CheckpointMetadata
@providerprotocol/agents / index / CheckpointMetadata
Interface: CheckpointMetadata
Section titled “Interface: CheckpointMetadata”Defined in: src/checkpoint/types.ts:202
Metadata about a checkpoint, stored separately from the full state.
Contains lightweight information about the checkpoint for quick retrieval without loading the complete state data.
Remarks
Section titled “Remarks”Metadata is written after the checkpoint data to ensure consistency. If a crash occurs between writing checkpoint and metadata, the checkpoint is still valid and can be recovered.
Properties
Section titled “Properties”agentId
Section titled “agentId”agentId:
string
Defined in: src/checkpoint/types.ts:232
The agent instance ID that created this checkpoint. Useful for tracking which agent configuration was used.
checkpointId
Section titled “checkpointId”checkpointId:
string
Defined in: src/checkpoint/types.ts:214
Unique identifier for this specific checkpoint. Generated automatically when the checkpoint is created. Useful for debugging and audit trails.
sessionId
Section titled “sessionId”sessionId:
string
Defined in: src/checkpoint/types.ts:207
The session identifier this checkpoint belongs to.
Matches the sessionId parameter passed to save().
step:
number
Defined in: src/checkpoint/types.ts:226
The step number at which this checkpoint was taken.
Corresponds to AgentState.step at save time.
timestamp
Section titled “timestamp”timestamp:
string
Defined in: src/checkpoint/types.ts:220
ISO 8601 timestamp when the checkpoint was created. Example: “2025-01-07T14:30:00.000Z”