Class: Anthropic::Models::Beta::BetaThinkingMismatchAllowedInputTransformation
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::BetaThinkingMismatchAllowedInputTransformation
- 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
-
#path ⇒ String
Where the block is in your request, as
messages.{i}.content.{j}:iindexes themessagesarray you sent andjthat message'scontentarray — the same form error messages use. -
#reason ⇒ Symbol, Anthropic::Models::Beta::BetaThinkingMismatchAllowedInputTransformation::Reason
Which binding check the block failed; the block was shown to the model all the same.
-
#type ⇒ Symbol, :thinking_mismatch_allowed
Always
thinking_mismatch_allowedfor this entry type.
Instance Method Summary collapse
-
#initialize(path:, reason:, type: :thinking_mismatch_allowed) ⇒ Object
constructor
Some parameter documentations has been truncated, see BetaThinkingMismatchAllowedInputTransformation for more details.
- #to_hash ⇒ {
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.
|
|
# File 'lib/anthropic/models/beta/beta_thinking_mismatch_allowed_input_transformation.rb', line 35
|
Instance Attribute Details
#path ⇒ String
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.
13 |
# File 'lib/anthropic/models/beta/beta_thinking_mismatch_allowed_input_transformation.rb', line 13 required :path, String |
#reason ⇒ Symbol, 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.
27 |
# File 'lib/anthropic/models/beta/beta_thinking_mismatch_allowed_input_transformation.rb', line 27 required :reason, enum: -> { Anthropic::Beta::BetaThinkingMismatchAllowedInputTransformation::Reason } |
#type ⇒ Symbol, :thinking_mismatch_allowed
Always thinking_mismatch_allowed for this entry type.
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 ⇒ {
26 |
# File 'sig/anthropic/models/beta/beta_thinking_mismatch_allowed_input_transformation.rbs', line 26 def to_hash: -> { |