Executor.OnMessageDeliveryStartingAsync Method

Definition

Invoked once per superstep before any messages are delivered to the Executor.

protected internal virtual System.Threading.Tasks.ValueTask OnMessageDeliveryStartingAsync(Microsoft.Agents.AI.Workflows.IWorkflowContext context, System.Threading.CancellationToken cancellationToken = default);
abstract member OnMessageDeliveryStartingAsync : Microsoft.Agents.AI.Workflows.IWorkflowContext * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask
override this.OnMessageDeliveryStartingAsync : Microsoft.Agents.AI.Workflows.IWorkflowContext * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask
Protected Friend Overridable Function OnMessageDeliveryStartingAsync (context As IWorkflowContext, Optional cancellationToken As CancellationToken = Nothing) As ValueTask

Parameters

context
IWorkflowContext

The workflow context.

cancellationToken
CancellationToken

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

Returns

A ValueTask representing the asynchronous operation.

Applies to