Interface GenerationConfig.ThinkingConfigOrBuilder (3.68.0)

public static interface GenerationConfig.ThinkingConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getIncludeThoughts()

public abstract boolean getIncludeThoughts()

Indicates whether to include thoughts in the response. If true, thoughts are returned only when available.

optional bool include_thoughts = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The includeThoughts.

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.

hasIncludeThoughts()

public abstract boolean hasIncludeThoughts()

Indicates whether to include thoughts in the response. If true, thoughts are returned only when available.

optional bool include_thoughts = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the includeThoughts field is set.

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.