generative-ai-python
google.generativeai.protos.LogprobsResult.Candidate
View source on GitHub
Candidate for the logprobs token and score.
Attributes
`token`
`str` The candidate’s token string value.
`token_id`
`int` The candidate’s token id value.
`log_probability`
`float` The candidate's log probability.