SummarizingChatReducer(IChatClient, Int32, Nullable<Int32>) Constructor

Definition

Initializes a new instance of the SummarizingChatReducer class with the specified chat client, target count, and optional threshold count.

public:
 SummarizingChatReducer(Microsoft::Extensions::AI::IChatClient ^ chatClient, int targetCount, Nullable<int> threshold);
public SummarizingChatReducer(Microsoft.Extensions.AI.IChatClient chatClient, int targetCount, int? threshold);
new Microsoft.Extensions.AI.SummarizingChatReducer : Microsoft.Extensions.AI.IChatClient * int * Nullable<int> -> Microsoft.Extensions.AI.SummarizingChatReducer
Public Sub New (chatClient As IChatClient, targetCount As Integer, threshold As Nullable(Of Integer))

Parameters

chatClient
IChatClient

The chat client used to interact with the chat system. Cannot be null.

targetCount
Int32

The target number of messages to retain after summarization. Must be greater than 0.

threshold
Nullable<Int32>

The number of messages allowed beyond targetCount before summarization is triggered. Must be greater than or equal to 0 if specified.

Applies to