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)
91
Throw
.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);