Class: Anthropic::Models::Beta::BetaThinkingMismatchAllowedInputTransformation

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/beta_thinking_mismatch_allowed_input_transformation.rb,
sig/anthropic/models/beta/beta_thinking_mismatch_allowed_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_mismatch_allowed) ⇒ Object

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

Parameters:

  • path (String)

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

  • reason (Symbol, Anthropic::Models::Beta::BetaThinkingMismatchAllowedInputTransformation::Reason)

    Which binding check the block failed; the block was shown to the model all

  • type (Symbol, :thinking_mismatch_allowed) (defaults to: :thinking_mismatch_allowed)

    Always thinking_mismatch_allowed for this entry type.



# File 'lib/anthropic/models/beta/beta_thinking_mismatch_allowed_input_transformation.rb', line 35


Instance Attribute Details

#pathString

Where the block is 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:

  • value (String)

Returns:

  • (String)


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

required :path, String

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

Which binding check the block failed; the block was shown to the model all the same. Always prefix_binding_mismatch today — the conversation before the block differs from the conversation it was created in, or the block carries no record of one on a model that requires it. Were the check enforced for this request, the block would have been removed or the request rejected (thinking.block_binding.prefix_mismatch_behavior). A removal also takes the rest of that turn's consecutive thinking blocks, whereas here each block is checked on its own, so thinking_mismatch_allowed entries are a lower bound on what enforcement would remove.

Parameters:

  • value (Anthropic::Models::Beta::BetaThinkingMismatchAllowedInputTransformation::reason)

Returns:



27
# File 'lib/anthropic/models/beta/beta_thinking_mismatch_allowed_input_transformation.rb', line 27

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

#typeSymbol, :thinking_mismatch_allowed

Always thinking_mismatch_allowed for this entry type.

Parameters:

  • value (:thinking_mismatch_allowed)

Returns:

  • (Symbol, :thinking_mismatch_allowed)


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

required :type, const: :thinking_mismatch_allowed

Instance Method Details

#to_hash{

Returns:

  • ({)


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

def to_hash: -> {