PromptFeedback interface

If the prompt was blocked, this will be populated with blockReason and the relevant safetyRatings.

Signature:

exportinterfacePromptFeedback

Properties

PropertyTypeDescription
blockReasonBlockReason
blockReasonMessagestring
safetyRatingsSafetyRating[]

PromptFeedback.blockReason

Signature:

blockReason?:BlockReason;

PromptFeedback.blockReasonMessage

Signature:

blockReasonMessage?:string;

PromptFeedback.safetyRatings

Signature:

safetyRatings:SafetyRating[];