12 references to SummarizingChatReducer
Microsoft.Extensions.AI.Integration.Tests (1)
ChatClientIntegrationTests.cs (1)
1370
Reducer = new
SummarizingChatReducer
(_summarizerChatClient, targetCount, threshold);
Microsoft.Extensions.AI.Tests (11)
ChatReduction\SummarizingChatReducerTests.cs (11)
20
Assert.Throws<ArgumentNullException>(() => new
SummarizingChatReducer
(null!, targetCount: 5, threshold: 2));
30
Assert.Throws<ArgumentOutOfRangeException>(() => new
SummarizingChatReducer
(chatClient, targetCount, threshold: 2));
39
Assert.Throws<ArgumentOutOfRangeException>(() => new
SummarizingChatReducer
(chatClient, targetCount: 5, thresholdCount));
46
var reducer = new
SummarizingChatReducer
(chatClient, targetCount: 5, threshold: 2);
54
var reducer = new
SummarizingChatReducer
(chatClient, targetCount: 5, threshold: 2);
65
var reducer = new
SummarizingChatReducer
(chatClient, targetCount: 1, threshold: 0);
90
var reducer = new
SummarizingChatReducer
(chatClient, targetCount: 3, threshold: 0);
119
var reducer = new
SummarizingChatReducer
(chatClient, targetCount, thresholdCount);
154
var reducer = new
SummarizingChatReducer
(chatClient, targetCount: 1, threshold: 0);
180
var reducer = new
SummarizingChatReducer
(chatClient, targetCount: 1, threshold: 0);
208
var reducer = new
SummarizingChatReducer
(chatClientForSummarization, targetCount: 2, threshold: 0);