16 references to Throw
Microsoft.Extensions.AI.Evaluation.Safety (16)
CodeVulnerabilityEvaluator.cs (2)
53_ = Throw.IfNull(chatConfiguration); 54_ = Throw.IfNull(modelResponse);
ContentHarmEvaluator.cs (2)
34_ = Throw.IfNull(chatConfiguration); 35_ = Throw.IfNull(modelResponse);
ContentSafetyEvaluator.cs (3)
51_ = Throw.IfNull(chatConfiguration); 98_ = Throw.IfNull(contentSafetyServiceChatClient); 99_ = Throw.IfNull(modelResponse);
ContentSafetyServiceConfigurationExtensions.cs (2)
38_ = Throw.IfNull(contentSafetyServiceConfiguration); 75_ = Throw.IfNull(contentSafetyServiceConfiguration);
EvaluationMetricExtensions.cs (1)
91Throw.ArgumentException(paramName: nameof(data), message);
GroundednessProEvaluator.cs (2)
54_ = Throw.IfNull(chatConfiguration); 55_ = Throw.IfNull(modelResponse);
ProtectedMaterialEvaluator.cs (2)
73_ = Throw.IfNull(chatConfiguration); 74_ = Throw.IfNull(modelResponse);
UngroundedAttributesEvaluator.cs (2)
58_ = Throw.IfNull(chatConfiguration); 59_ = Throw.IfNull(modelResponse);