ThinkingConfig

@Serializable
data class ThinkingConfig(val includeThoughts: Boolean? = null, val thinkingBudget: Int? = null, val thinkingLevel: ThinkingLevel? = null)

The thinking features configuration.

Constructors

Link copied to clipboard
constructor(includeThoughts: Boolean? = null, thinkingBudget: Int? = null, thinkingLevel: ThinkingLevel? = null)

Properties

Link copied to clipboard

Indicates whether to include thoughts in the response. If true, thoughts are returned only if the model supports thought and thoughts are available.

Link copied to clipboard
val thinkingBudget: Int? = null

Indicates the thinking budget in tokens. 0 is DISABLED. -1 is AUTOMATIC. The default values and allowed ranges are model dependent.

Link copied to clipboard

Optional. The number of thoughts tokens that the model should generate.