CandidateBuilder

Represents the candidate builder.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var avgLogprobs: Double?

Holds the avg logprobs.

Link copied to clipboard

Holds the citation metadata.

Link copied to clipboard
lateinit var content: Content

Holds the content.

Link copied to clipboard
var finishReason: String?

Holds the finish reason.

Link copied to clipboard

Holds the grounding metadata.

Link copied to clipboard
var index: Int

Holds the index.

Link copied to clipboard

Holds the logprobs result.

Link copied to clipboard
var tokenCount: Int?

Holds the token count.

Link copied to clipboard

Holds the url context metadata.

Functions

Link copied to clipboard

Handles build.

Link copied to clipboard
fun content(init: ContentBuilder.() -> Unit)

Handles content.

Link copied to clipboard

Handles grounding attribution.

Link copied to clipboard
fun safetyRating(init: SafetyRatingBuilder.() -> Unit)

Handles safety rating.