Module response

Source

Structs§

Candidate
A response candidate generated from the model.
CitationMetadata
CitationSource
GenerateContentResponse
PromptFeedback
PublicationDate
SafetyRating
Safety rating for a piece of content. The safety rating contains the category of harm and the harm probability level in that category for a piece of content. Content is classified for safety across a number of harm categories and the probability of the harm classification is included here.

Enums§

BlockReason
FinishReason
Defines the reason why the model stopped generating tokens.
HarmProbability
The probability that a piece of content is harmful. The classification system gives the probability of the content being unsafe. This does not indicate the severity of harm for a piece of content.