Table of Contents

Class ModerationOptions

Namespace
Glitch9.AIDevKit

Configuration options for chat moderation.

[Serializable]
public class ModerationOptions : GenerativeOptions, IGENOptions
Inheritance
object
ModerationOptions
Implements
Inherited Members

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.

public List<SafetySetting> SafetySettings

Field Value

List<SafetySetting>

Properties

IsValid

public bool IsValid { get; }

Property Value

bool