Interface ICheckpointStrategy
- Namespace
- JD.AI.Core.Agents.Checkpointing
- Assembly
- JD.AI.Core.dll
Abstraction for creating and managing project state checkpoints before file-mutating tool invocations.
public interface ICheckpointStrategy
Methods
ClearAsync(CancellationToken)
Remove all checkpoints.
Task ClearAsync(CancellationToken ct = default)
Parameters
Returns
CreateAsync(string, CancellationToken)
Create a checkpoint with the given label. Returns the checkpoint ID.
Task<string?> CreateAsync(string label, CancellationToken ct = default)
Parameters
labelstringctCancellationToken
Returns
ListAsync(CancellationToken)
List all checkpoints for the current project.
Task<IReadOnlyList<CheckpointInfo>> ListAsync(CancellationToken ct = default)
Parameters
Returns
RestoreAsync(string, CancellationToken)
Restore to a specific checkpoint.
Task<bool> RestoreAsync(string checkpointId, CancellationToken ct = default)
Parameters
checkpointIdstringctCancellationToken