Class: Anthropic::Models::CacheMissMessagesChanged
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::CacheMissMessagesChanged
- Defined in:
- lib/anthropic/models/cache_miss_messages_changed.rb,
sig/anthropic/models/cache_miss_messages_changed.rbs
Instance Attribute Summary collapse
-
#cache_missed_input_tokens ⇒ Integer
Approximate number of input tokens that would have been read from cache had the prefix matched the previous request.
- #type ⇒ Symbol, :messages_changed
Instance Method Summary collapse
-
#initialize(cache_missed_input_tokens:, type: :messages_changed) ⇒ CacheMissMessagesChanged
constructor
A
cache_miss_reasonfor a request whosemessagesdiffer from the previous request's in an earlier entry, instead of only having entries appended. - #to_hash ⇒ { cache_missed_input_tokens: Integer, type: :messages_changed }
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(cache_missed_input_tokens:, type: :messages_changed) ⇒ CacheMissMessagesChanged
A cache_miss_reason for a request whose messages differ from the previous
request's in an earlier entry, instead of only having entries appended. The
model, system, and tools match.
See the cache diagnostics guide to learn what to change for each reason.
Some parameter documentations has been truncated, see Anthropic::Models::CacheMissMessagesChanged for more details.
|
|
# File 'lib/anthropic/models/cache_miss_messages_changed.rb', line 18
|
Instance Attribute Details
#cache_missed_input_tokens ⇒ Integer
Approximate number of input tokens that would have been read from cache had the prefix matched the previous request.
11 |
# File 'lib/anthropic/models/cache_miss_messages_changed.rb', line 11 required :cache_missed_input_tokens, Integer |
#type ⇒ Symbol, :messages_changed
16 |
# File 'lib/anthropic/models/cache_miss_messages_changed.rb', line 16 required :type, const: :messages_changed |
Instance Method Details
#to_hash ⇒ { cache_missed_input_tokens: Integer, type: :messages_changed }
16 17 18 19 |
# File 'sig/anthropic/models/cache_miss_messages_changed.rbs', line 16
def to_hash: -> {
cache_missed_input_tokens: Integer,
type: :messages_changed
}
|