Lingua

InMemoryChatHistoryProviderOptions.ChatReducer Property

Definition

Gets or sets an optional IChatReducer instance used to process, reduce, or optimize chat messages. This can be used to implement strategies like message summarization, truncation, or cleanup.

public Microsoft.Extensions.AI.IChatReducer? ChatReducer { get; set; }
member this.ChatReducer : Microsoft.Extensions.AI.IChatReducer with get, set
Public Property ChatReducer As IChatReducer

Property Value

Applies to