Class: Anthropic::Models::Beta::BetaThinkingDroppedInputTransformation

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

Defined Under Namespace

Modules: Reason

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(path:, reason:, type: :thinking_dropped) ⇒ Object

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

Parameters:

  • Where the removed block was in your request, as messages.{i}.content.{j}:

  • Which binding check removed the block: model_binding_mismatch — it was

  • (defaults to: :thinking_dropped)

    Always thinking_dropped for this entry type.



# File 'lib/anthropic/models/beta/beta_thinking_dropped_input_transformation.rb', line 39

Instance Attribute Details

#pathString

Where the removed block was in your request, as messages.{i}.content.{j}: i indexes the messages array you sent and j that message's content array — the same form error messages use.

Parameters:

Returns:



13
# File 'lib/anthropic/models/beta/beta_thinking_dropped_input_transformation.rb', line 13

required :path, String

#reasonSymbol, Anthropic::Models::Beta::BetaThinkingDroppedInputTransformation::Reason

Which binding check removed the block: model_binding_mismatch — it was created by a model whose reasoning the requested model may not read; prefix_binding_mismatch — the conversation before it differs from the conversation it was created in (the rest of that turn's consecutive thinking blocks are removed with it, each with this reason); organization_binding_mismatch — it was created under a different organization (an Anthropic organization, AWS account or Google Cloud project) and this organization is not one of its additional organizations; end_user_binding_mismatch — it was created for a different end user, or was removed by the consumer-organization binding. A block that would fail several checks reports one reason, in this order of precedence: organization_binding_mismatch, end_user_binding_mismatch, model_binding_mismatch, prefix_binding_mismatch.

Parameters:

Returns:



31
# File 'lib/anthropic/models/beta/beta_thinking_dropped_input_transformation.rb', line 31

required :reason, enum: -> { Anthropic::Beta::BetaThinkingDroppedInputTransformation::Reason }

#typeSymbol, :thinking_dropped

Always thinking_dropped for this entry type.

Parameters:

Returns:



37
# File 'lib/anthropic/models/beta/beta_thinking_dropped_input_transformation.rb', line 37

required :type, const: :thinking_dropped

Instance Method Details

#to_hash{

Returns:



26
# File 'sig/anthropic/models/beta/beta_thinking_dropped_input_transformation.rbs', line 26

def to_hash: -> {