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