Table of Contents

Class GeminiPromptFeedback

A set of the feedback metadata for the prompt specified in a generation request.

public class GeminiPromptFeedback : IAppendableData<GeminiPromptFeedback>
Inheritance
GeminiPromptFeedback
Implements
Extension Methods

Fields

BlockReason

If set, the prompt was blocked and no candidates are returned. Rephrase your prompt.

public GeminiBlockReason BlockReason

Field Value

GeminiBlockReason

SafetyRatings

Ratings for safety of the prompt. There is at most one rating per category.

public GeminiSafetyRating[] SafetyRatings

Field Value

GeminiSafetyRating[]

Methods

Append(GeminiPromptFeedback)

Appends the data to the current IAppendableData<T>.

public void Append(GeminiPromptFeedback data)

Parameters

data GeminiPromptFeedback

The data to append.