Class SessionWorkflowApi
workflow namespace.- Since:
- 1.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionAPI methods for theworkflow.journalsub-namespace. -
Method Summary
Modifier and TypeMethodDescriptionagent(SessionWorkflowAgentParams params) Runs one dynamic-workflow-scoped subagent and returns its result.cancel(SessionWorkflowCancelParams params) Requests cancellation of a dynamic workflow run and returns its run envelope.getRun(SessionWorkflowGetRunParams params) Gets the current or settled envelope for a dynamic workflow run.Gets durable and live observability detail for one dynamic workflow run.Pages durable progress for one dynamic workflow run.Lists durable dynamic workflow runs for this session in creation order.log(SessionWorkflowLogParams params) Records a batch of ordered dynamic workflow progress lines.pause(SessionWorkflowPauseParams params) Pauses a running dynamic workflow and returns its settled run envelope.resume(SessionWorkflowResumeParams params) Resumes a dynamic workflow run using its persisted name, arguments, journal, and accounting.run(SessionWorkflowRunParams params) Runs a registered dynamic workflow by name at the top level.
-
Field Details
-
journal
API methods for theworkflow.journalsub-namespace.
-
-
Method Details
-
run
@CopilotExperimental public CompletableFuture<SessionWorkflowRunResult> run(SessionWorkflowRunParams params) Runs a registered dynamic workflow by name at the top level.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
resume
@CopilotExperimental public CompletableFuture<SessionWorkflowResumeResult> resume(SessionWorkflowResumeParams params) Resumes a dynamic workflow run using its persisted name, arguments, journal, and accounting.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
getRun
@CopilotExperimental public CompletableFuture<SessionWorkflowGetRunResult> getRun(SessionWorkflowGetRunParams params) Gets the current or settled envelope for a dynamic workflow run.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
listRuns
@CopilotExperimental public CompletableFuture<SessionWorkflowListRunsResult> listRuns(SessionWorkflowListRunsParams params) Lists durable dynamic workflow runs for this session in creation order.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
getRunDetail
@CopilotExperimental public CompletableFuture<SessionWorkflowGetRunDetailResult> getRunDetail(SessionWorkflowGetRunDetailParams params) Gets durable and live observability detail for one dynamic workflow run.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
getRunProgress
@CopilotExperimental public CompletableFuture<SessionWorkflowGetRunProgressResult> getRunProgress(SessionWorkflowGetRunProgressParams params) Pages durable progress for one dynamic workflow run.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
cancel
@CopilotExperimental public CompletableFuture<SessionWorkflowCancelResult> cancel(SessionWorkflowCancelParams params) Requests cancellation of a dynamic workflow run and returns its run envelope.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
pause
@CopilotExperimental public CompletableFuture<SessionWorkflowPauseResult> pause(SessionWorkflowPauseParams params) Pauses a running dynamic workflow and returns its settled run envelope.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
log
Records a batch of ordered dynamic workflow progress lines.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
agent
@CopilotExperimental public CompletableFuture<SessionWorkflowAgentResult> agent(SessionWorkflowAgentParams params) Runs one dynamic-workflow-scoped subagent and returns its result.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-