Class: Anthropic::Models::Beta::BetaDiagnostics

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

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 ⇒ BetaDiagnostics

Returns a new instance of BetaDiagnostics.

Parameters:

  • cache_miss_reason: (Anthropic::Models::Beta::beta_cache_miss_reason, nil)


12
13
14
# File 'sig/anthropic/models/beta/beta_diagnostics.rbs', line 12

def initialize: (
  cache_miss_reason: Anthropic::Models::Beta::beta_cache_miss_reason?
) -> void

Instance Attribute Details

#cache_miss_reason ⇒ Anthropic::Models::Beta::BetaCacheMissModelChanged, ...

Explains why the prompt cache could not fully reuse the prefix from the request identified by diagnostics.previous_message_id. null means diagnosis is still pending — the response was serialized before the background comparison completed.



14
# File 'lib/anthropic/models/beta/beta_diagnostics.rb', line 14

required :cache_miss_reason, union: -> { Anthropic::Beta::BetaCacheMissReason }, nil?: true

Instance Method Details

#to_hash ⇒ { cache_miss_reason: Anthropic::Models::Beta::beta_cache_miss_reason? }

Returns:

  • ({ cache_miss_reason: Anthropic::Models::Beta::beta_cache_miss_reason? })


16
17
18
# File 'sig/anthropic/models/beta/beta_diagnostics.rbs', line 16

def to_hash: -> {
  cache_miss_reason: Anthropic::Models::Beta::beta_cache_miss_reason?
}