Share via


IWorkflowExecutionEnvironment.ResumeAsync Method

Definition

Resumes a non-streaming execution of the workflow from a checkpoint.

public System.Threading.Tasks.ValueTask<Microsoft.Agents.AI.Workflows.Run> ResumeAsync(Microsoft.Agents.AI.Workflows.Workflow workflow, Microsoft.Agents.AI.Workflows.CheckpointInfo fromCheckpoint, System.Threading.CancellationToken cancellationToken = default);
abstract member ResumeAsync : Microsoft.Agents.AI.Workflows.Workflow * Microsoft.Agents.AI.Workflows.CheckpointInfo * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Microsoft.Agents.AI.Workflows.Run>
Public Function ResumeAsync (workflow As Workflow, fromCheckpoint As CheckpointInfo, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of Run)

Parameters

workflow
Workflow

The workflow to be executed. Must not be null.

fromCheckpoint
CheckpointInfo

The CheckpointInfo corresponding to the checkpoint from which to resume.

cancellationToken
CancellationToken

The CancellationToken to monitor for cancellation requests. The default is None.

Returns

A ValueTask<TResult> that represents the asynchronous operation. The result contains a Run for managing and interacting with the streaming run.

Remarks

The workflow will run until its first halt, and the returned Run will capture all outgoing events. Use the Run instance to resume execution with responses to outgoing events.

Applies to