struct Gemini::GenerateContentResponse::PromptFeedback

Overview

A set of the feedback metadata the prompt specified in Gemini::Content.

API Reference

Included Modules

Defined in:

gemini/response.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new #

Instance Method Detail

def block_reason : BlockReason | Nil #

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


def safety_ratings : Array(SafetyRating) #

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