docs-devsite/ai.promptfeedback.md
Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference
{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}
If the prompt was blocked, this will be populated with blockReason and the relevant safetyRatings<!-- -->.
<b>Signature:</b>
export interface PromptFeedback
| Property | Type | Description |
|---|---|---|
| blockReason | BlockReason | |
| blockReasonMessage | string | A human-readable description of the <code>blockReason</code>.<!-- -->This property is only supported in the Vertex AI Gemini API (VertexAIBackend<!-- -->). |
| safetyRatings | SafetyRating<!-- -->[] |
<b>Signature:</b>
blockReason?: BlockReason;
A human-readable description of the blockReason<!-- -->.
This property is only supported in the Vertex AI Gemini API (VertexAIBackend<!-- -->).
<b>Signature:</b>
blockReasonMessage?: string;
<b>Signature:</b>
safetyRatings: SafetyRating[];