generative-ai-python

google.generativeai.protos.LogprobsResult

Logprobs Result

`top_candidates` `MutableSequence[google.ai.generativelanguage.LogprobsResult.TopCandidates]` Length = total number of decoding steps.
`chosen_candidates` `MutableSequence[google.ai.generativelanguage.LogprobsResult.Candidate]` Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates.

Child Classes

class Candidate

class TopCandidates