Table of Contents

Enum GeminiBlockReason

Specifies what was the reason why prompt was blocked.

public enum GeminiBlockReason
Extension Methods

Fields

[EnumMember(Value = "BLOCKLIST")] BlockList = 3

Prompt was blocked due to the terms which are included from the terminology blocklist.

[EnumMember(Value = "OTHER")] Other = 2

Prompt was blocked due to unknown reasons.

[EnumMember(Value = "PROHIBITED_CONTENT")] ProhibitedContent = 4

Prompt was blocked due to prohibited content.

[EnumMember(Value = "SAFETY")] Safety = 1

Prompt was blocked due to safety reasons. You can inspect SafetyRatings to understand which safety category blocked it.

[EnumMember(Value = "BLOCK_REASON_UNSPECIFIED")] Unspecified = 0

Default value. This value is unused.