Search Results for

    Show / Hide Table of Contents

    Class GuardrailContextualGroundingFilter

    The details for the guardrails contextual grounding filter.

    Inheritance
    object
    GuardrailContextualGroundingFilter
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.AmazonAws
    Assembly: Glitch9.AIDevKit.Provider.AmazonAws.dll
    Syntax
    public class GuardrailContextualGroundingFilter

    Properties

    | Edit this page View Source

    Action

    Required. The action performed by the guardrails contextual grounding filter. Valid Values: BLOCKED | NONE

    Declaration
    [JsonProperty("action")]
    public string Action { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Detected

    Optional. Indicates whether content that fails the contextual grounding evaluation (grounding or relevance score less than the corresponding threshold) was detected.

    Declaration
    [JsonProperty("detected")]
    public bool? Detected { get; set; }
    Property Value
    Type Description
    bool?
    | Edit this page View Source

    Score

    Required. The score generated by contextual grounding filter.

    Declaration
    [JsonProperty("score")]
    public double Score { get; set; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    Threshold

    Required. The threshold used by contextual grounding filter to determine whether the content is grounded or not.

    Declaration
    [JsonProperty("threshold")]
    public double Threshold { get; set; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    Type

    Required. The contextual grounding filter type. Valid Values: GROUNDING | RELEVANCE

    Declaration
    [JsonProperty("type")]
    public string Type { get; set; }
    Property Value
    Type Description
    string

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation