If the prompt was blocked, this will be populated with blockReason and the relevant safetyRatings.
Signature:
export interface PromptFeedback 
Properties
| Property | Type | Description | 
|---|---|---|
| blockReason | BlockReason | |
| blockReasonMessage | string | A human-readable description of the blockReason.This property is only supported in the Vertex AI Gemini API (VertexAIBackend). | 
| safetyRatings | SafetyRating[] | 
PromptFeedback.blockReason
Signature:
blockReason?: BlockReason;
PromptFeedback.blockReasonMessage
A human-readable description of the blockReason.
This property is only supported in the Vertex AI Gemini API (VertexAIBackend).
Signature:
blockReasonMessage?: string;
PromptFeedback.safetyRatings
Signature:
safetyRatings: SafetyRating[];