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

Properties of a Candidate.

Package

@google-ai/generativelanguage

Properties

citationMetadata

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

Candidate citationMetadata

content

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

Candidate content

finishReason

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

Candidate finishReason

index

index?: (number|null);

Candidate index

safetyRatings

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

Candidate safetyRatings

tokenCount

tokenCount?: (number|null);

Candidate tokenCount