28 references to Throw
Microsoft.Extensions.AI.Evaluation (28)
ChatMessageExtensions.cs (2)
114_ = Throw.IfNull(message); 154_ = Throw.IfNull(messages);
ChatResponseExtensions.cs (1)
36_ = Throw.IfNull(response);
CompositeEvaluator.cs (2)
45_ = Throw.IfNull(evaluators); 63Throw.ArgumentException(nameof(evaluators), $"Cannot add multiple evaluators for '{metricName}'.");
EvaluationMetricExtensions.cs (9)
25_ = Throw.IfNull(metric); 26_ = Throw.IfNull(context); 66_ = Throw.IfNull(metric); 83_ = Throw.IfNull(metric); 84_ = Throw.IfNull(diagnostics); 115_ = Throw.IfNull(metric); 129_ = Throw.IfNull(metric); 130_ = Throw.IfNull(metadata); 153_ = Throw.IfNull(response);
EvaluationResult.cs (2)
57_ = Throw.IfNull(metrics); 66Throw.ArgumentException(nameof(metrics), $"Cannot add multiple metrics with name '{metric.Name}'.");
EvaluationResultExtensions.cs (8)
28_ = Throw.IfNull(result); 57_ = Throw.IfNull(result); 95_ = Throw.IfNull(result); 115_ = Throw.IfNull(result); 116_ = Throw.IfNull(interpretationProvider); 138_ = Throw.IfNull(result); 158_ = Throw.IfNull(result); 183_ = Throw.IfNull(result);
EvaluatorExtensions.cs (4)
136_ = Throw.IfNull(evaluator); 181_ = Throw.IfNull(evaluator); 230_ = Throw.IfNull(evaluator); 279_ = Throw.IfNull(evaluator);