OptionalavgOutput 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.
OptionalcitationSource attribution of the generated content.
OptionalcontentContains the multi-part content of the response.
OptionalfinishDescribes the reason the model stopped generating tokens.
OptionalfinishThe reason why the model stopped generating tokens. If empty, the model has not stopped generating the tokens.
OptionalgroundingOutput only. Metadata returned when grounding is enabled. It contains the sources used to ground the generated content.
OptionalindexOutput only. The 0-based index of this candidate in the list of generated responses. This is useful for distinguishing between multiple candidates when candidate_count > 1.
OptionallogprobsOutput only. The detailed log probability information for the tokens in this candidate. This is useful for debugging, understanding model uncertainty, and identifying potential "hallucinations".
OptionalsafetyOutput only. A list of ratings for the safety of a response candidate. There is at most one rating per category.
OptionaltokenNumber of tokens for this candidate.
OptionalurlOutput only. Metadata returned when the model uses the url_context tool to get information from a user-provided URL.
A response candidate generated from the model.