Search Results for

    Show / Hide Table of Contents

    Class GuardrailTopic

    Information about a topic guardrail.

    Inheritance
    object
    GuardrailTopic
    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 GuardrailTopic

    Properties

    | Edit this page View Source

    Definition

    Required. A definition of the topic to deny.

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

    Examples

    Optional. A list of prompts, each of which is an example of a prompt that can be categorized as belonging to the topic.

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

    InputAction

    Optional. The action to take when harmful content is detected in the input. Valid Values: BLOCK | NONE

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

    InputEnabled

    Optional. Indicates whether guardrail evaluation is enabled on the input.

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

    Name

    Required. The name of the topic to deny.

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

    OutputAction

    Optional. The action to take when harmful content is detected in the output. Valid Values: BLOCK | NONE

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

    OutputEnabled

    Optional. Indicates whether guardrail evaluation is enabled on the output.

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

    Type

    Optional. Specifies to deny the topic. Valid Value: DENY

    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