語言

SummarizingChatReducer(IChatClient, Int32, Nullable<Int32>) 建構函式

定義

初始化一個新的類別實例 SummarizingChatReducer ,使用指定的聊天客戶端、目標計數及可選的閾值計數。

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))

參數

chatClient
IChatClient

聊天客戶端過去是用來與聊天系統互動的。 不可以是 null。

targetCount
Int32

摘要後應保留的訊息目標數量。 必須大於 0。

threshold
Nullable<Int32>

在觸發摘要前,允許 targetCount 發送的訊息數量。 若有指定,必須大於或等於0。

適用於