Share via


ChatHistoryKernelAgent.ReduceAsync(ChatHistory, CancellationToken) Method

Definition

Reduce the provided history

public System.Threading.Tasks.Task<bool> ReduceAsync (Microsoft.SemanticKernel.ChatCompletion.ChatHistory history, System.Threading.CancellationToken cancellationToken = default);
member this.ReduceAsync : Microsoft.SemanticKernel.ChatCompletion.ChatHistory * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function ReduceAsync (history As ChatHistory, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)

Parameters

history
ChatHistory

The source history

cancellationToken
CancellationToken

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

Returns

Applies to