Properties of a Candidate.
Package
@google-ai/generativelanguageProperties
avgLogprobs
avgLogprobs?: (number|null);
Candidate avgLogprobs
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
groundingMetadata
groundingMetadata?: (google.ai.generativelanguage.v1beta.IGroundingMetadata|null);
Candidate groundingMetadata
index
index?: (number|null);
Candidate index
logprobsResult
logprobsResult?: (google.ai.generativelanguage.v1beta.ILogprobsResult|null);
Candidate logprobsResult
safetyRatings
safetyRatings?: (google.ai.generativelanguage.v1beta.ISafetyRating[]|null);
Candidate safetyRatings
tokenCount
tokenCount?: (number|null);
Candidate tokenCount