Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerationConfigThinkingConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb

Overview

Config for thinking features.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1GenerationConfigThinkingConfig

Returns a new instance of GoogleCloudAiplatformV1GenerationConfigThinkingConfig.



13056
13057
13058
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 13056

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#include_thoughtsBoolean Also known as: include_thoughts?

Optional. Indicates whether to include thoughts in the response. If true, thoughts are returned only when available. Corresponds to the JSON property includeThoughts

Returns:

  • (Boolean)


13047
13048
13049
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 13047

def include_thoughts
  @include_thoughts
end

#thinking_budgetFixnum

Optional. Indicates the thinking budget in tokens. This is only applied when enable_thinking is true. Corresponds to the JSON property thinkingBudget

Returns:

  • (Fixnum)


13054
13055
13056
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 13054

def thinking_budget
  @thinking_budget
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13061
13062
13063
13064
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 13061

def update!(**args)
  @include_thoughts = args[:include_thoughts] if args.key?(:include_thoughts)
  @thinking_budget = args[:thinking_budget] if args.key?(:thinking_budget)
end