Skip to content

Interface: CheckpointMetadata

@providerprotocol/agents


@providerprotocol/agents / index / 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.

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.

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: 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: 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: string

Defined in: src/checkpoint/types.ts:220

ISO 8601 timestamp when the checkpoint was created. Example: “2025-01-07T14:30:00.000Z”