26 references to Throw
Microsoft.Extensions.AI.Evaluation.Safety (26)
CodeVulnerabilityEvaluator.cs (2)
53
_ =
Throw
.IfNull(chatConfiguration);
54
_ =
Throw
.IfNull(modelResponse);
ContentHarmEvaluator.cs (2)
55
_ =
Throw
.IfNull(chatConfiguration);
56
_ =
Throw
.IfNull(modelResponse);
ContentSafetyChatClient.cs (3)
149
Throw
.ArgumentException(nameof(messages), ErrorMessage);
157
Throw
.ArgumentException(nameof(messages), ErrorMessage);
173
Throw
.ArgumentNullException(nameof(_originalChatClient), errorMessage);
ContentSafetyEvaluator.cs (3)
43
_ =
Throw
.IfNull(chatConfiguration);
90
_ =
Throw
.IfNull(contentSafetyServiceChatClient);
91
_ =
Throw
.IfNull(modelResponse);
ContentSafetyServiceConfiguration.cs (7)
129
Credential =
Throw
.IfNull(credential);
130
SubscriptionId =
Throw
.IfNullOrWhitespace(subscriptionId);
131
ResourceGroupName =
Throw
.IfNullOrWhitespace(resourceGroupName);
132
ProjectName =
Throw
.IfNullOrWhitespace(projectName);
171
Credential =
Throw
.IfNull(credential);
172
Endpoint =
Throw
.IfNull(endpoint);
212
endpoint: new Uri(
Throw
.IfNullOrWhitespace(endpointUrl)),
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);