Class: Anthropic::Models::ThinkingDelta

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/thinking_delta.rb,
sig/anthropic/models/thinking_delta.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(thinking:, type: :thinking_delta) ⇒ ThinkingDelta

Returns a new instance of ThinkingDelta.

Parameters:

  • thinking (String)
  • type (Symbol, :thinking_delta) (defaults to: :thinking_delta)
  • thinking: (String)
  • type: (:thinking_delta) (defaults to: :thinking_delta)


# File 'lib/anthropic/models/thinking_delta.rb', line 16


Instance Attribute Details

#thinkingString

Parameters:

  • value (String)

Returns:

  • (String)


9
# File 'lib/anthropic/models/thinking_delta.rb', line 9

required :thinking, String

#typeSymbol, :thinking_delta

Parameters:

  • value (:thinking_delta)

Returns:

  • (Symbol, :thinking_delta)


14
# File 'lib/anthropic/models/thinking_delta.rb', line 14

required :type, const: :thinking_delta

Instance Method Details

#to_hash{ thinking: String, type: :thinking_delta }

Returns:

  • ({ thinking: String, type: :thinking_delta })


12
# File 'sig/anthropic/models/thinking_delta.rbs', line 12

def to_hash: -> { thinking: String, type: :thinking_delta }