ChatHistoryAgent.HistoryReducer Property
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.
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).