ChatHistoryKernelAgent.ReduceAsync(ChatHistory, CancellationToken) 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.
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.