Interface GenerationConfig.ThinkingConfigOrBuilder (3.64.0)

public static interface GenerationConfig.ThinkingConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getThinkingBudget()

public abstract int getThinkingBudget()

Optional. Indicates the thinking budget in tokens. This is only applied when enable_thinking is true.

optional int32 thinking_budget = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The thinkingBudget.

hasThinkingBudget()

public abstract boolean hasThinkingBudget()

Optional. Indicates the thinking budget in tokens. This is only applied when enable_thinking is true.

optional int32 thinking_budget = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the thinkingBudget field is set.