generative-ai-python

google.generativeai.protos.LogprobsResult.Candidate

Candidate for the logprobs token and score.

`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.