Package dev.cachly
Class WorkflowClient
java.lang.Object
dev.cachly.WorkflowClient
Workflow checkpoint client for agent workflows.
Obtain via
CachlyClient.workflow().-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA single saved workflow checkpoint.static final classSummary of a workflow run (returned bylistRuns()).static final classOptional parameters forsave(String, String, SaveOptions). -
Method Summary
Modifier and TypeMethodDescriptionvoidDelete all checkpoints for a run.Get all checkpoints for a run.Get the latest checkpoint for a run.listRuns()List all workflow runs.Save with default options.save(String runId, String stepName, WorkflowClient.SaveOptions opts) Save a workflow checkpoint.
-
Method Details
-
save
public WorkflowClient.Checkpoint save(String runId, String stepName, WorkflowClient.SaveOptions opts) throws CachlyException Save a workflow checkpoint.POST {workflowUrl}/checkpoints- Throws:
CachlyException
-
save
Save with default options.- Throws:
CachlyException
-
listRuns
List all workflow runs.GET {workflowUrl}/runs- Throws:
CachlyException
-
getRun
Get all checkpoints for a run.GET {workflowUrl}/runs/:runId- Throws:
CachlyException
-
latest
Get the latest checkpoint for a run.GET {workflowUrl}/runs/:runId/latest- Throws:
CachlyException
-
deleteRun
Delete all checkpoints for a run.DELETE {workflowUrl}/runs/:runId- Throws:
CachlyException
-