Google Cloud Ai Platform V1 Client - Class ThinkingConfig (1.50.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class ThinkingConfig.

Config for thinking features.

Generated from protobuf message google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig

Namespace

Google \ Cloud \ AIPlatform \ V1 \ GenerationConfig

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ include_thoughts bool

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

↳ thinking_budget int

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

↳ thinking_level int

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

getIncludeThoughts

Indicates whether to include thoughts in the response.

If true, thoughts are returned only when available.

Returns
Type Description
bool

hasIncludeThoughts

clearIncludeThoughts

setIncludeThoughts

Indicates whether to include thoughts in the response.

If true, thoughts are returned only when available.

Parameter
Name Description
var bool
Returns
Type Description
$this

getThinkingBudget

Optional. Indicates the thinking budget in tokens.

This is only applied when enable_thinking is true.

Returns
Type Description
int

hasThinkingBudget

clearThinkingBudget

setThinkingBudget

Optional. Indicates the thinking budget in tokens.

This is only applied when enable_thinking is true.

Parameter
Name Description
var int
Returns
Type Description
$this

getThinkingLevel

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

Returns
Type Description
int

hasThinkingLevel

clearThinkingLevel

setThinkingLevel

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

Parameter
Name Description
var int
Returns
Type Description
$this