SummarizingChatReducer(IChatClient, Int32, Nullable<Int32>) Constructor
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Initialiseert een nieuw exemplaar van de SummarizingChatReducer klasse met de opgegeven chatclient, het doelaantal en het optionele aantal drempelwaarden.
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
De chatclient die wordt gebruikt om te communiceren met het chatsysteem. Kan niet zijn null.
- targetCount
- Int32
Het doelaantal berichten dat moet worden bewaard na samenvatting. Moet groter zijn dan 0.
Het aantal berichten dat verder targetCount is toegestaan voordat samenvatting wordt geactiveerd. Moet groter dan of gelijk zijn aan 0 als deze is opgegeven.