Language

InProcessExecution.ResumeAsync Method

Definition

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

public static System.Threading.Tasks.ValueTask<Microsoft.Agents.AI.Workflows.Run> ResumeAsync(Microsoft.Agents.AI.Workflows.Workflow workflow, Microsoft.Agents.AI.Workflows.CheckpointInfo fromCheckpoint, Microsoft.Agents.AI.Workflows.CheckpointManager checkpointManager, System.Threading.CancellationToken cancellationToken = default);
static member ResumeAsync : Microsoft.Agents.AI.Workflows.Workflow * Microsoft.Agents.AI.Workflows.CheckpointInfo * Microsoft.Agents.AI.Workflows.CheckpointManager * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Microsoft.Agents.AI.Workflows.Run>
Public Shared Function ResumeAsync (workflow As Workflow, fromCheckpoint As CheckpointInfo, checkpointManager As CheckpointManager, 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.

checkpointManager
CheckpointManager
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.

Applies to