Table of Contents

Class PromptFeedback

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

A set of the feedback metadata the prompt specified in Contents.

public class PromptFeedback
Inheritance
PromptFeedback
Inherited Members
Extension Methods

Properties

BlockReason

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

[JsonPropertyName("blockReason")]
public BlockReason? BlockReason { get; set; }

Property Value

BlockReason?

BlockReasonMessage

Optional. A readable block reason message.

[JsonPropertyName("blockReasonMessage")]
public string? BlockReasonMessage { get; set; }

Property Value

string

SafetyRatings

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

[JsonPropertyName("safetyRatings")]
public List<SafetyRating>? SafetyRatings { get; set; }

Property Value

List<SafetyRating>

See Also