BlockReason
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
public struct BlockReason : DecodableProtoEnum, Hashable, SendableA type describing possible reasons to block a prompt.
-
The prompt was blocked because it was deemed unsafe.
Declaration
Swift
public static let safety: PromptFeedback.BlockReason -
All other block reasons.
Declaration
Swift
public static let other: PromptFeedback.BlockReason -
The prompt was blocked because it contained terms from the terminology blocklist.
Declaration
Swift
public static let blocklist: PromptFeedback.BlockReason -
The prompt was blocked due to prohibited content.
Declaration
Swift
public static let prohibitedContent: PromptFeedback.BlockReason -
Returns the raw string representation of the
BlockReasonvalue.Note
This value directly corresponds to the values in the REST API.
Declaration
Swift
public let rawValue: String