Share via


ChatHistoryAgent.HistoryReducer Property

Definition

Gets an optional IChatHistoryReducer to reduce the history.

public Microsoft.SemanticKernel.ChatCompletion.IChatHistoryReducer? HistoryReducer { get; init; }
member this.HistoryReducer : Microsoft.SemanticKernel.ChatCompletion.IChatHistoryReducer with get, set
Public Property HistoryReducer As IChatHistoryReducer

Property Value

Remarks

The reducer is automatically applied to the history before invoking the agent, only when using an AgentChat. It must be explicitly applied via ReduceAsync(ChatHistory, CancellationToken).

Applies to