Language

RoundRobinGroupChatManager.OnCheckpointingAsync Method

Definition

Invoked when the hosting group chat workflow is checkpointing, giving subclasses a chance to persist any additional state they maintain (e.g., a round-robin cursor or an LLM session).

protected override System.Threading.Tasks.ValueTask OnCheckpointingAsync(Microsoft.Agents.AI.Workflows.IWorkflowContext context, System.Threading.CancellationToken cancellationToken = default);
override this.OnCheckpointingAsync : Microsoft.Agents.AI.Workflows.IWorkflowContext * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask
Protected Overrides Function OnCheckpointingAsync (context As IWorkflowContext, Optional cancellationToken As CancellationToken = Nothing) As ValueTask

Parameters

context
IWorkflowContext

A wrapped workflow context that scopes state keys to the GroupChatManager subclass namespace.

cancellationToken
CancellationToken

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

Returns

Applies to