Run Class
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.
Represents a workflow run that tracks execution status and emitted workflow events, supporting resumption with responses to RequestInfoEvent.
public sealed class Run : Microsoft.Agents.AI.Workflows.CheckpointableRunBase, IAsyncDisposable
type Run = class
inherit CheckpointableRunBase
interface IAsyncDisposable
Public NotInheritable Class Run
Inherits CheckpointableRunBase
Implements IAsyncDisposable
- Inheritance
- Implements
Properties
| Name | Description |
|---|---|
| Checkpoints | (Inherited from CheckpointableRunBase) |
| IsCheckpointingEnabled | (Inherited from CheckpointableRunBase) |
| LastCheckpoint |
Gets the most recent checkpoint information. (Inherited from CheckpointableRunBase) |
| NewEventCount |
The number of events emitted by the workflow since the last access to NewEvents |
| NewEvents |
Gets all events emitted by the workflow since the last access to NewEvents. |
| OutgoingEvents |
Gets all events emitted by the workflow. |
| SessionId |
A unique identifier for the session. Can be provided at the start of the session, or auto-generated. |
Methods
| Name | Description |
|---|---|
| DisposeAsync() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously. |
| GetStatusAsync(CancellationToken) |
Gets the current execution status of the workflow run. |
| RestoreCheckpointAsync(CheckpointInfo, CancellationToken) | (Inherited from CheckpointableRunBase) |
| ResumeAsync(IEnumerable<ExternalResponse>, CancellationToken) |
Resume execution of the workflow with the provided external responses. |
| ResumeAsync<T>(CancellationToken, IEnumerable<T>) |
Resume execution of the workflow with the provided external responses. |