Store and resume workflow with checkpoints in .NET Microsoft Agent Framework
Authorised Territory demonstrates how workflows in the .NET Microsoft Agent Framework can be paused and resumed using checkpoints, with checkpoint state stored on disk as JSON via a CheckpointManager.
Full summary based on transcript
What the tutorial covers
- How to make a workflow resumable by saving progress into checkpoints.
- How checkpoints are persisted to disk as JSON files.
- Using a
CheckpointManagerto manage storing and loading checkpoint data.
Checkpoint storage approach
- Checkpoints are written to the local filesystem.
- The checkpoint payload is serialized as JSON.
- The
CheckpointManageris responsible for:- Creating checkpoint files
- Updating checkpoint files as the workflow progresses
- Loading checkpoint files to resume execution
Prerequisites / starting point
- The video builds on a starting solution from an earlier tutorial: https://youtu.be/54GZ7LymKzo