Class: Anthropic::Models::Beta::BetaThinkingConfigAdaptive

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/beta_thinking_config_adaptive.rb,
sig/anthropic/models/beta/beta_thinking_config_adaptive.rbs

Defined Under Namespace

Modules: Display

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(block_binding: nil, display_: nil, type: :adaptive) ⇒ BetaThinkingConfigAdaptive

Some parameter documentations has been truncated, see Anthropic::Models::Beta::BetaThinkingConfigAdaptive for more details.

Parameters:

  • block_binding (Anthropic::Models::Beta::BetaThinkingBlockBinding, nil) (defaults to: nil) —

    Controls for block binding: what happens when a thinking block this request send

  • display_ (Symbol, Anthropic::Models::Beta::BetaThinkingConfigAdaptive::Display, nil) (defaults to: nil) —

    Controls how thinking content appears in the response. When set to summarized,

  • type (Symbol, :adaptive) (defaults to: :adaptive)
  • block_binding: (Anthropic::Beta::BetaThinkingBlockBinding, nil) (defaults to: nil)
  • display_: (Anthropic::Models::Beta::BetaThinkingConfigAdaptive::display_, nil) (defaults to: nil)
  • type: (:adaptive) (defaults to: :adaptive)


# File 'lib/anthropic/models/beta/beta_thinking_config_adaptive.rb', line 33

Instance Attribute Details

#block_binding ⇒ Anthropic::Models::Beta::BetaThinkingBlockBinding?

Controls for block binding: what happens when a thinking block this request sends back fails the conversation check. null, absent or an empty object means every default.

Parameters:

  • value (Anthropic::Beta::BetaThinkingBlockBinding, nil)

Returns:



18
# File 'lib/anthropic/models/beta/beta_thinking_config_adaptive.rb', line 18

optional :block_binding, -> { Anthropic::Beta::BetaThinkingBlockBinding }, nil?: true

#display_ ⇒ Symbol, ...

Controls how thinking content appears in the response. When set to summarized, thinking is returned normally. When set to omitted, thinking content is redacted but a signature is returned for multi-turn continuity. The default depends on the model; see Controlling thinking display.

Parameters:

  • value (Anthropic::Models::Beta::BetaThinkingConfigAdaptive::display_, nil)

Returns:



28
29
30
31
# File 'lib/anthropic/models/beta/beta_thinking_config_adaptive.rb', line 28

optional :display_,
enum: -> { Anthropic::Beta::BetaThinkingConfigAdaptive::Display },
api_name: :display,
nil?: true

#type ⇒ Symbol, :adaptive

Parameters:

  • value (:adaptive)

Returns:

  • (Symbol, :adaptive)


10
# File 'lib/anthropic/models/beta/beta_thinking_config_adaptive.rb', line 10

required :type, const: :adaptive

Instance Method Details

#to_hash ⇒ { type: :adaptive, block_binding: Anthropic::Beta::BetaThinkingBlockBinding?, display_: Anthropic::Models::Beta::BetaThinkingConfigAdaptive::display_? }

Returns:

  • ({ type: :adaptive, block_binding: Anthropic::Beta::BetaThinkingBlockBinding?, display_: Anthropic::Models::Beta::BetaThinkingConfigAdaptive::display_? })


26
27
28
29
30
# File 'sig/anthropic/models/beta/beta_thinking_config_adaptive.rbs', line 26

def to_hash: -> {
  type: :adaptive,
  block_binding: Anthropic::Beta::BetaThinkingBlockBinding?,
  display_: Anthropic::Models::Beta::BetaThinkingConfigAdaptive::display_?
}