Share via


UngroundedAttributesEvaluatorContext(String) Constructor

Definition

Contextual information that the UngroundedAttributesEvaluator uses to evaluate whether a response is ungrounded.

public:
 UngroundedAttributesEvaluatorContext(System::String ^ groundingContext);
public UngroundedAttributesEvaluatorContext(string groundingContext);
new Microsoft.Extensions.AI.Evaluation.Safety.UngroundedAttributesEvaluatorContext : string -> Microsoft.Extensions.AI.Evaluation.Safety.UngroundedAttributesEvaluatorContext
Public Sub New (groundingContext As String)

Parameters

groundingContext
String

Contextual information against which the groundedness (or ungroundedness) of a response is evaluated.

Remarks

UngroundedAttributesEvaluator measures whether the response being evaluated is first, ungrounded based on the information present in the supplied groundingContext. It then checks whether the response contains information about the protected class or emotional state of a person.

Applies to