workflow_checkpoint
Atomically persist pipeline step outputs and advance step counter for workflow resumption. Supports idempotent replay by overwriting same step outputs.
Instructions
Atomically persist a completed step's output and advance the step counter.
Call this immediately after each pipeline step completes, before starting the next one. A replacement agent can resume from the last checkpoint using workflow_resume().
The output can be any JSON-serialisable value (dict, list, str, …). If step N was already checkpointed, calling again with the same step overwrites the stored output (idempotent replay support).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| step | Yes | ||
| output | Yes | ||
| run_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| step | Yes | ||
| run_id | Yes |