23 references to Throw
Microsoft.Extensions.AI.Evaluation (23)
CompositeEvaluator.cs (2)
45_ = Throw.IfNull(evaluators); 63Throw.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); 69Throw.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);