Interface GenerationConfigThinkingConfig

Config for thinking feature.

This interface will be deprecated. Please use ThinkingConfig instead.

interface GenerationConfigThinkingConfig {
    includeThoughts?: boolean;
    thinkingBudget?: number;
    thinkingLevel?: ThinkingLevel;
}

Hierarchy (View Summary)

Properties

includeThoughts?: boolean

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

thinkingBudget?: number

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

thinkingLevel?: ThinkingLevel

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