Candidate
A response candidate generated from the model.
Constructors
Properties
Output only. The average log probability of the tokens in this candidate. This is a length-normalized score that can be used to compare the quality of candidates of different lengths. A higher average log probability suggests a more confident and coherent response.
Source attribution of the generated content.
Describes the reason the model stopped generating tokens.
The reason why the model stopped generating tokens. If empty, the model has not stopped generating the tokens.
Output only. Metadata returned when grounding is enabled. It contains the sources used to ground the generated content.
Output only. The detailed log probability information for the tokens in this candidate. This is useful for debugging, understanding model uncertainty, and identifying potential "hallucinations".
Output only. A list of ratings for the safety of a response candidate. There is at most one rating per category.
Number of tokens for this candidate.
Output only. Metadata returned when the model uses the url_context tool to get information from a user-provided URL.