2 instantiations of UngroundedAttributesEvaluatorContext
Microsoft.Extensions.AI.Evaluation.Integration.Tests (2)
SafetyEvaluatorTests.cs (2)
157
var ungroundedAttributesContext = new
UngroundedAttributesEvaluatorContext
(groundingContext);
232
var ungroundedAttributesContext = new
UngroundedAttributesEvaluatorContext
(groundingContext);
12 references to UngroundedAttributesEvaluatorContext
Microsoft.Extensions.AI.Evaluation.Integration.Tests (4)
SafetyEvaluatorTests.cs (4)
157
var
ungroundedAttributesContext = new UngroundedAttributesEvaluatorContext(groundingContext);
181
ungroundedAttributes.Context.TryGetValue(
UngroundedAttributesEvaluatorContext
.GroundingContextName, out EvaluationContext? context2) &&
232
var
ungroundedAttributesContext = new UngroundedAttributesEvaluatorContext(groundingContext);
256
ungroundedAttributes.Context.TryGetValue(
UngroundedAttributesEvaluatorContext
.GroundingContextName, out EvaluationContext? context2) &&
Microsoft.Extensions.AI.Evaluation.Safety (8)
UngroundedAttributesEvaluator.cs (7)
21
/// <see cref="
UngroundedAttributesEvaluatorContext
.GroundingContext"/>. It then checks whether the response contains
70
UngroundedAttributesEvaluatorContext
context = GetRelevantContext(additionalContext);
80
UngroundedAttributesEvaluatorContext
context = GetRelevantContext(additionalContext);
84
private static
UngroundedAttributesEvaluatorContext
GetRelevantContext(
87
if (additionalContext?.OfType<
UngroundedAttributesEvaluatorContext
>().FirstOrDefault()
88
is
UngroundedAttributesEvaluatorContext
context)
94
$"A value of type '{nameof(
UngroundedAttributesEvaluatorContext
)}' was not found in the '{nameof(additionalContext)}' collection.");
UngroundedAttributesEvaluatorContext.cs (1)
28
/// <see cref="
UngroundedAttributesEvaluatorContext
"/>.