Class PromptFeedback (1.48.0)

PromptFeedback(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Content filter results for a prompt sent in the request.

Attributes

NameDescription
block_reason google.cloud.aiplatform_v1beta1.types.GenerateContentResponse.PromptFeedback.BlockedReason
Output only. Blocked reason.
safety_ratings MutableSequence[google.cloud.aiplatform_v1beta1.types.SafetyRating]
Output only. Safety ratings.
block_reason_message str
Output only. A readable block reason message.

Classes

BlockedReason

BlockedReason(value)

Blocked reason enumeration.

Values: BLOCKED_REASON_UNSPECIFIED (0): Unspecified blocked reason. SAFETY (1): Candidates blocked due to safety. OTHER (2): Candidates blocked due to other reason. BLOCKLIST (3): Candidates blocked due to the terms which are included from the terminology blocklist. PROHIBITED_CONTENT (4): Candidates blocked due to prohibited content.

Methods

PromptFeedback

PromptFeedback(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Content filter results for a prompt sent in the request.