Class: Anthropic::Models::Beta::BetaThinkingTypes

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

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 ⇒ BetaThinkingTypes

Returns a new instance of BetaThinkingTypes.

Parameters:

  • adaptive: (Anthropic::Beta::BetaCapabilitySupport)
  • between_tools: (Anthropic::Beta::BetaCapabilitySupport)
  • disabled: (Anthropic::Beta::BetaCapabilitySupport)
  • enabled: (Anthropic::Beta::BetaCapabilitySupport)


23
24
25
26
27
28
# File 'sig/anthropic/models/beta/beta_thinking_types.rbs', line 23

def initialize: (
  adaptive: Anthropic::Beta::BetaCapabilitySupport,
  between_tools: Anthropic::Beta::BetaCapabilitySupport,
  disabled: Anthropic::Beta::BetaCapabilitySupport,
  enabled: Anthropic::Beta::BetaCapabilitySupport
) -> void

Instance Attribute Details

#adaptive ⇒ Anthropic::Models::Beta::BetaCapabilitySupport

Whether the model accepts thinking with type 'adaptive' (the model decides whether and how much to think).

Parameters:

  • value (Anthropic::Beta::BetaCapabilitySupport)

Returns:



12
# File 'lib/anthropic/models/beta/beta_thinking_types.rb', line 12

required :adaptive, -> { Anthropic::Beta::BetaCapabilitySupport }

#between_tools ⇒ Anthropic::Models::Beta::BetaCapabilitySupport

Whether the model accepts thinking with type 'between_tools' (thinking turned off, and any short progress updates the model writes between tool calls come back as thinking blocks). False exactly when a request that sends it gets a 400 from this model. A request that sends 'between_tools' can still be rejected for another reason, such as an effort level the model does not allow with thinking off.

Parameters:

  • value (Anthropic::Beta::BetaCapabilitySupport)

Returns:



23
# File 'lib/anthropic/models/beta/beta_thinking_types.rb', line 23

required :between_tools, -> { Anthropic::Beta::BetaCapabilitySupport }

#disabled ⇒ Anthropic::Models::Beta::BetaCapabilitySupport

Whether the model accepts thinking with type 'disabled' (thinking turned off). False exactly when a request that sends it gets a 400 from this model. True on a model that does not support thinking. A request that sends 'disabled' can still be rejected for another reason, such as an effort level the model does not allow with thinking off.

Parameters:

  • value (Anthropic::Beta::BetaCapabilitySupport)

Returns:



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

required :disabled, -> { Anthropic::Beta::BetaCapabilitySupport }

#enabled ⇒ Anthropic::Models::Beta::BetaCapabilitySupport

Whether the model accepts thinking with type 'enabled' (extended thinking with a caller-set budget_tokens).

Parameters:

  • value (Anthropic::Beta::BetaCapabilitySupport)

Returns:



40
# File 'lib/anthropic/models/beta/beta_thinking_types.rb', line 40

required :enabled, -> { Anthropic::Beta::BetaCapabilitySupport }

Instance Method Details

#to_hash ⇒ { adaptive: Anthropic::Beta::BetaCapabilitySupport, between_tools: Anthropic::Beta::BetaCapabilitySupport, disabled: Anthropic::Beta::BetaCapabilitySupport, enabled: Anthropic::Beta::BetaCapabilitySupport }

Returns:

  • ({ adaptive: Anthropic::Beta::BetaCapabilitySupport, between_tools: Anthropic::Beta::BetaCapabilitySupport, disabled: Anthropic::Beta::BetaCapabilitySupport, enabled: Anthropic::Beta::BetaCapabilitySupport })


30
31
32
33
34
35
# File 'sig/anthropic/models/beta/beta_thinking_types.rbs', line 30

def to_hash: -> {
  adaptive: Anthropic::Beta::BetaCapabilitySupport,
  between_tools: Anthropic::Beta::BetaCapabilitySupport,
  disabled: Anthropic::Beta::BetaCapabilitySupport,
  enabled: Anthropic::Beta::BetaCapabilitySupport
}