Interface protos.google.ai.generativelanguage.v1beta.ICandidate (2.6.0)

Properties of a Candidate.

Package

@google-ai/generativelanguage

Properties

citationMetadata

citationMetadata?: (google.ai.generativelanguage.v1beta.ICitationMetadata|null);

Candidate citationMetadata

content

content?: (google.ai.generativelanguage.v1beta.IContent|null);

Candidate content

finishReason

finishReason?: (google.ai.generativelanguage.v1beta.Candidate.FinishReason|keyof typeof google.ai.generativelanguage.v1beta.Candidate.FinishReason|null);

Candidate finishReason

groundingAttributions

groundingAttributions?: (google.ai.generativelanguage.v1beta.IGroundingAttribution[]|null);

Candidate groundingAttributions

index

index?: (number|null);

Candidate index

safetyRatings

safetyRatings?: (google.ai.generativelanguage.v1beta.ISafetyRating[]|null);

Candidate safetyRatings

tokenCount

tokenCount?: (number|null);

Candidate tokenCount