SummarizingChatReducer(IChatClient, Int32, Nullable<Int32>) Constructor
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.
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.
The number of messages allowed beyond targetCount before summarization is triggered. Must be greater than or equal to 0 if specified.