23 references to Throw
Microsoft.Extensions.AI.Evaluation (23)
CompositeEvaluator.cs (2)
45
_ =
Throw
.IfNull(evaluators);
63
Throw
.ArgumentException(nameof(evaluators), $"Cannot add multiple evaluators for '{metricName}'.");
EvaluationMetricExtensions.cs (7)
35
_ =
Throw
.IfNull(metric);
59
_ =
Throw
.IfNull(metric);
76
_ =
Throw
.IfNull(metric);
77
_ =
Throw
.IfNull(diagnostics);
108
_ =
Throw
.IfNull(metric);
122
_ =
Throw
.IfNull(metric);
123
_ =
Throw
.IfNull(metadata);
EvaluationResult.cs (2)
55
_ =
Throw
.IfNull(metrics);
69
Throw
.ArgumentException(nameof(metrics), $"Cannot add multiple metrics with name '{metric.Name}'.");
EvaluationResultExtensions.cs (7)
45
_ =
Throw
.IfNull(result);
63
_ =
Throw
.IfNull(result);
101
_ =
Throw
.IfNull(result);
121
_ =
Throw
.IfNull(result);
122
_ =
Throw
.IfNull(interpretationProvider);
144
_ =
Throw
.IfNull(result);
164
_ =
Throw
.IfNull(result);
EvaluatorExtensions.cs (4)
136
_ =
Throw
.IfNull(evaluator);
181
_ =
Throw
.IfNull(evaluator);
230
_ =
Throw
.IfNull(evaluator);
279
_ =
Throw
.IfNull(evaluator);
TokenizerExtensions.cs (1)
40
_ =
Throw
.IfNull(tokenizer);