26 instantiations of EnricherOptions
Microsoft.Extensions.DataIngestion (1)
Processors\EnricherOptions.cs (1)
48
internal EnricherOptions Clone() =>
new
(ChatClient)
Microsoft.Extensions.DataIngestion.Tests (25)
Processors\AlternativeTextEnricherTests.cs (4)
30
ImageAlternativeTextEnricher sut = new(
new
(chatClient));
65
ImageAlternativeTextEnricher sut = new(
new
(chatClient));
151
ImageAlternativeTextEnricher sut = new(
new
(chatClient) { BatchSize = batchSize });
169
EnricherOptions options =
new
(chatClient) { LoggerFactory = loggerFactory };
Processors\ClassificationEnricherTests.cs (7)
29
Assert.Throws<ArgumentException>("predefinedClasses", () => new ClassificationEnricher(
new
(new TestChatClient()), predefinedClasses: []));
35
Assert.Throws<ArgumentException>("predefinedClasses", () => new ClassificationEnricher(
new
(new TestChatClient()), predefinedClasses: ["same", "same"]));
41
Assert.Throws<ArgumentException>("predefinedClasses", () => new ClassificationEnricher(
new
(new TestChatClient()), predefinedClasses: ["same", "Unknown"]));
47
Assert.Throws<ArgumentException>("predefinedClasses", () => new ClassificationEnricher(
new
(new TestChatClient()), predefinedClasses: ["some"], fallbackClass: "some"));
54
ClassificationEnricher sut = new(
new
(chatClient), predefinedClasses: ["some"]);
88
ClassificationEnricher sut = new(
new
(chatClient), ["AI", "Animals", "Sports"], fallbackClass: "UFO");
108
ClassificationEnricher sut = new(
new
(chatClient) { LoggerFactory = loggerFactory }, ["AI", "Other"]);
Processors\KeywordEnricherTests.cs (6)
31
Assert.Throws<ArgumentOutOfRangeException>("confidenceThreshold", () => new KeywordEnricher(
new
(new TestChatClient()), predefinedKeywords: null, confidenceThreshold: threshold));
39
Assert.Throws<ArgumentOutOfRangeException>("maxKeywords", () => new KeywordEnricher(
new
(new TestChatClient()), predefinedKeywords: null, maxKeywords: keywordCount));
45
Assert.Throws<ArgumentException>("predefinedKeywords", () => new KeywordEnricher(
new
(new TestChatClient()), predefinedKeywords: ["same", "same"], confidenceThreshold: 0.5));
52
KeywordEnricher sut = new(
new
(chatClient), predefinedKeywords: null, confidenceThreshold: 0.5);
89
KeywordEnricher sut = new(
new
(chatClient), predefinedKeywords: predefined, confidenceThreshold: 0.5);
108
KeywordEnricher sut = new(
new
(chatClient) { LoggerFactory = loggerFactory }, ["AI", "Other"]);
Processors\SentimentEnricherTests.cs (4)
31
Assert.Throws<ArgumentOutOfRangeException>("confidenceThreshold", () => new SentimentEnricher(
new
(new TestChatClient()), confidenceThreshold: threshold));
38
SentimentEnricher sut = new(
new
(chatClient));
72
SentimentEnricher sut = new(
new
(chatClient));
95
SentimentEnricher sut = new(
new
(chatClient) { LoggerFactory = loggerFactory });
Processors\SummaryEnricherTests.cs (4)
31
Assert.Throws<ArgumentOutOfRangeException>("maxWordCount", () => new SummaryEnricher(
new
(new TestChatClient()), maxWordCount: wordCount));
38
SummaryEnricher sut = new(
new
(chatClient));
72
SummaryEnricher sut = new(
new
(chatClient));
92
SummaryEnricher sut = new(
new
(chatClient) { LoggerFactory = loggerFactory });
14 references to EnricherOptions
Microsoft.Extensions.DataIngestion (13)
Processors\ClassificationEnricher.cs (2)
22
private readonly
EnricherOptions
_options;
32
public ClassificationEnricher(
EnricherOptions
options, ReadOnlySpan<string> predefinedClasses,
Processors\EnricherOptions.cs (2)
16
/// Initializes a new instance of the <see cref="
EnricherOptions
"/> class.
48
internal
EnricherOptions
Clone() => new(ChatClient)
Processors\ImageAlternativeTextEnricher.cs (2)
20
private readonly
EnricherOptions
_options;
28
public ImageAlternativeTextEnricher(
EnricherOptions
options)
Processors\KeywordEnricher.cs (2)
23
private readonly
EnricherOptions
_options;
38
public KeywordEnricher(
EnricherOptions
options, ReadOnlySpan<string> predefinedKeywords,
Processors\SentimentEnricher.cs (2)
21
private readonly
EnricherOptions
_options;
30
public SentimentEnricher(
EnricherOptions
options, double? confidenceThreshold = null)
Processors\SummaryEnricher.cs (2)
21
private readonly
EnricherOptions
_options;
30
public SummaryEnricher(
EnricherOptions
options, int? maxWordCount = null)
Utils\Batching.cs (1)
21
EnricherOptions
options,
Microsoft.Extensions.DataIngestion.Tests (1)
Processors\AlternativeTextEnricherTests.cs (1)
169
EnricherOptions
options = new(chatClient) { LoggerFactory = loggerFactory };