AI DevKit
Search Results for

    Show / Hide Table of Contents

    Class ModerationOptions

    Configuration options for chat moderation.

    Inheritance
    object
    GenerativeOptions
    ModerationOptions
    Implements
    IGENOptions
    Inherited Members
    GenerativeOptions.Api
    GenerativeOptions.ModelId
    Namespace: Glitch9.AIDevKit
    Assembly: .dll
    Syntax
    [Serializable]
    public class ModerationOptions : GenerativeOptions, IGENOptions

    Fields

    SafetySettings

    A list of unique SafetySetting instances for blocking unsafe content. that will be enforced on the GenerateTextRequest.prompt and GenerateTextResponse.candidates. There should not be more than one setting for each SafetyCategory type. The API will block any prompts and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each SafetyCategory specified in the safetySettings. If there is no SafetySetting for a given SafetyCategory provided in the list, the API will use the default safety setting for that category.

    Declaration
    public List<SafetySetting> SafetySettings
    Field Value
    Type Description
    List<SafetySetting>

    Properties

    IsValid

    Declaration
    public bool IsValid { get; }
    Property Value
    Type Description
    bool

    Implements

    IGENOptions
    In this article
    Back to top Generated by DocFX