Class: Anthropic::Models::Beta::BetaRedactedThinkingBlockParam

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/beta_redacted_thinking_block_param.rb,
sig/anthropic/models/beta/beta_redacted_thinking_block_param.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

#initializeBetaRedactedThinkingBlockParam

Returns a new instance of BetaRedactedThinkingBlockParam.

Parameters:

  • data: (String)
  • type: (:redacted_thinking)


14
# File 'sig/anthropic/models/beta/beta_redacted_thinking_block_param.rbs', line 14

def initialize: (data: String, ?type: :redacted_thinking) -> void

Instance Attribute Details

#dataString

Parameters:

  • value (String)

Returns:

  • (String)


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

required :data, String

#typeSymbol, :redacted_thinking

Parameters:

  • value (:redacted_thinking)

Returns:

  • (Symbol, :redacted_thinking)


15
# File 'lib/anthropic/models/beta/beta_redacted_thinking_block_param.rb', line 15

required :type, const: :redacted_thinking

Instance Method Details

#to_hash{ data: String, type: :redacted_thinking }

Returns:

  • ({ data: String, type: :redacted_thinking })


16
# File 'sig/anthropic/models/beta/beta_redacted_thinking_block_param.rbs', line 16

def to_hash: -> { data: String, type: :redacted_thinking }