GenerationConfigBuilder

Represents the generation config builder.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Holds the image config.

Link copied to clipboard
var maxOutputTokens: Int?

Holds the max output tokens.

Link copied to clipboard
var responseMimeType: String?

Holds the response mime type.

Link copied to clipboard

Holds the speech config.

Link copied to clipboard
var temperature: Double?

Holds the temperature.

Link copied to clipboard

Holds the thinking config.

Link copied to clipboard
var topK: Int?

Holds the top k.

Link copied to clipboard
var topP: Double?

Holds the top p.

Functions

Link copied to clipboard

Handles build.

Link copied to clipboard
fun imageConfig(init: ImageConfigBuilder.() -> Unit)

Handles image config.

Link copied to clipboard
fun responseModality(modality: Modality)

Handles response modality.

Link copied to clipboard
fun speechConfig(init: SpeechConfigBuilder.() -> Unit)

Handles speech config.

Link copied to clipboard
fun stopSequence(sequence: String)

Handles stop sequence.