14 instantiations of SummarizingChatReducer
Microsoft.Extensions.AI.Integration.Tests (1)
ChatClientIntegrationTests.cs (1)
1379
Reducer = new
SummarizingChatReducer
(_summarizerChatClient, targetCount, threshold);
Microsoft.Extensions.AI.Tests (13)
ChatReduction\SummarizingChatReducerTests.cs (13)
20
Assert.Throws<ArgumentNullException>("chatClient", () => new
SummarizingChatReducer
(null!, targetCount: 5, threshold: 2));
30
Assert.Throws<ArgumentOutOfRangeException>(nameof(targetCount), () => new
SummarizingChatReducer
(chatClient, targetCount, threshold: 2));
39
Assert.Throws<ArgumentOutOfRangeException>("threshold", () => 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);
92
var reducer = new
SummarizingChatReducer
(chatClient, targetCount: 2, threshold: 0);
137
var reducer = new
SummarizingChatReducer
(chatClient, targetCount: 3, threshold: 2);
183
var reducer = new
SummarizingChatReducer
(chatClient, targetCount: 3, threshold: 0);
237
var reducer = new
SummarizingChatReducer
(chatClient, targetCount, thresholdCount);
272
var reducer = new
SummarizingChatReducer
(chatClient, targetCount: 1, threshold: 0);
298
var reducer = new
SummarizingChatReducer
(chatClient, targetCount: 1, threshold: 0);
326
var reducer = new
SummarizingChatReducer
(chatClientForSummarization, targetCount: 2, threshold: 0);
12 references to SummarizingChatReducer
Microsoft.Extensions.AI (1)
ChatReduction\SummarizingChatReducer.cs (1)
59
/// Initializes a new instance of the <see cref="
SummarizingChatReducer
"/> class with the specified chat client,
Microsoft.Extensions.AI.Integration.Tests (1)
ChatClientIntegrationTests.cs (1)
1363
public
SummarizingChatReducer
Reducer { get; }
Microsoft.Extensions.AI.Tests (10)
ChatReduction\SummarizingChatReducerTests.cs (10)
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);
92
var
reducer = new SummarizingChatReducer(chatClient, targetCount: 2, threshold: 0);
137
var
reducer = new SummarizingChatReducer(chatClient, targetCount: 3, threshold: 2);
183
var
reducer = new SummarizingChatReducer(chatClient, targetCount: 3, threshold: 0);
237
var
reducer = new SummarizingChatReducer(chatClient, targetCount, thresholdCount);
272
var
reducer = new SummarizingChatReducer(chatClient, targetCount: 1, threshold: 0);
298
var
reducer = new SummarizingChatReducer(chatClient, targetCount: 1, threshold: 0);
326
var
reducer = new SummarizingChatReducer(chatClientForSummarization, targetCount: 2, threshold: 0);