Interface GenerateContentCandidate (1.0.0)

A response candidate generated from the model.

Package

@google-cloud/vertexai

Properties

citationMetadata

citationMetadata?: CitationMetadata;

Optional. CitationMetadata.

content

content: Content;

finishMessage

finishMessage?: string;

Optional. A readable message describing why the model stopped generating tokens.

finishReason

finishReason?: FinishReason;

Optional. The reason why the model stopped generating tokens. FinishReason.

groundingMetadata

groundingMetadata?: GroundingMetadata;

Optional. GroundingMetadata.

index

index: number;

Optional. The index of the candidate in the GenerateContentResponse.

safetyRatings

safetyRatings?: SafetyRating[];

Optional. Array of SafetyRating.