BlockReason
public enum BlockReason : String
extension PromptFeedback.BlockReason: Decodable
A type describing possible reasons to block a prompt.
-
The block reason is unknown.
Declaration
Swift
case unknown = "UNKNOWN"
-
The block reason was not specified in the server response.
Declaration
Swift
case unspecified = "BLOCK_REASON_UNSPECIFIED"
-
The prompt was blocked because it was deemed unsafe.
Declaration
Swift
case safety = "SAFETY"
-
All other block reasons.
Declaration
Swift
case other = "OTHER"
-
Declaration
Swift
public init(from decoder: Decoder) throws