Class BlockedReason (1.122.0)

BlockedReason(value)

Blocked reason enumeration.

Enums

Name Description
BLOCKED_REASON_UNSPECIFIED Unspecified blocked reason.
SAFETY Candidates blocked due to safety.
OTHER Candidates blocked due to other reason.
BLOCKLIST Candidates blocked due to the terms which are included from the terminology blocklist.
PROHIBITED_CONTENT Candidates blocked due to prohibited content.
MODEL_ARMOR The user prompt was blocked by Model Armor.
JAILBREAK The user prompt was blocked due to jailbreak.

Methods

BlockedReason

BlockedReason(value)

Blocked reason enumeration.