Search Results for

    Show / Hide Table of Contents

    Class ModerationSettings

    Inheritance
    object
    GenerationSettings
    ModerationSettings
    Implements
    IModerationOptions
    IGenerationOptions
    IModerationRequestOptions
    IProviderRequestOptions
    Inherited Members
    GenerationSettings.Api
    GenerationSettings.Model
    GenerationSettings.ConnectionMode
    GenerationSettings.Stream
    GenerationSettings.WriteGenerationRecords
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.Agent.dll
    Syntax
    [Serializable]
    public class ModerationSettings : GenerationSettings, IModerationOptions, IGenerationOptions, IModerationRequestOptions, IProviderRequestOptions

    Properties

    | Edit this page View Source

    ModelType

    Declaration
    public override ModelType ModelType { get; }
    Property Value
    Type Description
    ModelType
    Overrides
    GenerationSettings.ModelType
    | Edit this page View Source

    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 SafetySetting[] SafetySettings { get; }
    Property Value
    Type Description
    SafetySetting[]

    Implements

    IModerationOptions
    IGenerationOptions
    IModerationRequestOptions
    IProviderRequestOptions

    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