temperature

public abstract GenerationConfig.Builder temperature(Float temperature)

Setter for temperature.

temperature: Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0].