Files

1.7 KiB

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 %}

PromptFeedback interface

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 Agent Platform Gemini API (AgentPlatformBackend).
safetyRatings SafetyRating[]

PromptFeedback.blockReason

Signature:

blockReason?: BlockReason;

PromptFeedback.blockReasonMessage

A human-readable description of the blockReason.

This property is only supported in the Agent Platform Gemini API (AgentPlatformBackend).

Signature:

blockReasonMessage?: string;

PromptFeedback.safetyRatings

Signature:

safetyRatings: SafetyRating[];