Executor.OnMessageDeliveryStartingAsync 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.
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.