PromptFeedback
@available(iOS 15.0, macOS 11.0, *)
public struct PromptFeedback
extension PromptFeedback: Decodable
A metadata struct containing any feedback the model had on the prompt it was provided.
-
A type describing possible reasons to block a prompt.
Declaration
-
The reason a prompt was blocked, if it was blocked.
Declaration
Swift
public let blockReason: BlockReason?
-
The safety ratings of the prompt.
Declaration
Swift
public let safetyRatings: [SafetyRating]
-
Initializer for SwiftUI previews or tests.
Declaration
Swift
public init(blockReason: BlockReason?, safetyRatings: [SafetyRating])
-
Declaration
Swift
public init(from decoder: Decoder) throws