Candidate


class Candidate


A piece of a response from the model. Contains the FinishReason in addition to the Content of the response.

Summary

Nested types

@IntDef(value = [0, 1, 2])
annotation Candidate.FinishReason

Finish reason associated with a Candidate

Public constructors

@VisibleForTesting(otherwise = 3)
Candidate(content: Content, @Candidate.FinishReason finishReason: Int?)

Public properties

Content
Int?

Public constructors

Candidate

@VisibleForTesting(otherwise = 3)
Candidate(content: Content, @Candidate.FinishReason finishReason: Int? = null)

Public properties

content

val contentContent

finishReason

val finishReasonInt?