Class ModerationParameters
[Serializable]
public class ModerationParameters : IGenerativeParameters
- Inheritance
-
objectModerationParameters
- Implements
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>
m_Model
public string m_Model
Field Value
- string
Properties
Api
public Api Api { get; }
Property Value
Model
public string Model { get; }
Property Value
- string
Stream
public bool Stream { get; }
Property Value
- bool