IWorkflowExecutionEnvironment.ResumeStreamingAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Resumes an asynchronous streaming execution for the specified input from a checkpoint.
public System.Threading.Tasks.ValueTask<Microsoft.Agents.AI.Workflows.StreamingRun> ResumeStreamingAsync(Microsoft.Agents.AI.Workflows.Workflow workflow, Microsoft.Agents.AI.Workflows.CheckpointInfo fromCheckpoint, System.Threading.CancellationToken cancellationToken = default);
abstract member ResumeStreamingAsync : Microsoft.Agents.AI.Workflows.Workflow * Microsoft.Agents.AI.Workflows.CheckpointInfo * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Microsoft.Agents.AI.Workflows.StreamingRun>
Public Function ResumeStreamingAsync (workflow As Workflow, fromCheckpoint As CheckpointInfo, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of StreamingRun)
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 StreamingRun that provides access to the results of the streaming run.
Remarks
If the operation is cancelled via the cancellationToken token, the streaming execution will be terminated.