Class: Anthropic::Models::Beta::BetaThinkingBlockBinding
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::BetaThinkingBlockBinding
- Defined in:
- lib/anthropic/models/beta/beta_thinking_block_binding.rb,
sig/anthropic/models/beta/beta_thinking_block_binding.rbs
Instance Attribute Summary collapse
-
#prefix_mismatch_behavior ⇒ Symbol, ...
What happens when a thinking block in
messagesfails the conversation check: it was created in a different conversation, or the messages before it have changed since.
Instance Method Summary collapse
- #initialize ⇒ Object constructor
- #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 ⇒ Object
14 |
# File 'sig/anthropic/models/beta/beta_thinking_block_binding.rbs', line 14 def initialize: ( |
Instance Attribute Details
#prefix_mismatch_behavior ⇒ Symbol, ...
What happens when a thinking block in messages fails the conversation check:
it was created in a different conversation, or the messages before it have
changed since. "error" (the default) fails the request with a 400 error.
"drop_block" removes the failing blocks and the request proceeds; the model no
longer sees the dropped reasoning.
15 16 17 |
# File 'lib/anthropic/models/beta/beta_thinking_block_binding.rb', line 15 optional :prefix_mismatch_behavior, enum: -> { Anthropic::Beta::BetaThinkingPrefixMismatchBehavior }, nil?: true |
Instance Method Details
#to_hash ⇒ {
18 |
# File 'sig/anthropic/models/beta/beta_thinking_block_binding.rbs', line 18 def to_hash: -> { |