BlockReason Enumeration
Specifies the reason why the prompt was blocked.
Namespace: GenerativeAI.TypesAssembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
BLOCK_REASON_UNSPECIFIED | 0 |
Default value. This value is unused.
|
SAFETY | 1 |
Prompt was blocked due to safety reasons. Inspect SafetyRatings to understand which safety category blocked it.
|
OTHER | 2 |
Prompt was blocked due to unknown reasons.
|
BLOCKLIST | 3 |
Prompt was blocked due to the terms which are included from the terminology blocklist.
|
PROHIBITED_CONTENT | 4 |
Prompt was blocked due to prohibited content.
|
IMAGE_SAFETY | 5 |
Candidates blocked due to unsafe image generation content.
|