Gemini.Types.SafetySetting (GeminiEx v0.2.1)
View SourceSafety settings for content generation.
Summary
Functions
Create a safety setting for dangerous content.
Get default safety settings (medium threshold for all categories).
Create a safety setting for harassment content.
Create a safety setting for hate speech content.
Get permissive safety settings (block only high risk content).
Create a safety setting for sexually explicit content.
Types
@type category() ::
:harm_category_harassment
| :harm_category_hate_speech
| :harm_category_sexually_explicit
| :harm_category_dangerous_content
@type threshold() ::
:harm_block_threshold_unspecified
| :block_low_and_above
| :block_medium_and_above
| :block_only_high
| :block_none
Functions
Create a safety setting for dangerous content.
Get default safety settings (medium threshold for all categories).
Create a safety setting for harassment content.
Create a safety setting for hate speech content.
Get permissive safety settings (block only high risk content).
Create a safety setting for sexually explicit content.