Module: Anthropic::Models::Beta::BetaCacheMissReason
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/anthropic/models/beta/beta_cache_miss_reason.rb
Defined Under Namespace
Modules: Type
Class Method Summary collapse
-
.new(type:, **args) ⇒ Anthropic::Models::Beta::BetaCacheMissModelChanged, ...
Creates a new instance of the variant class whose
typematches the given value, passing the remaining arguments to its constructor. - .values ⇒ Array<Symbol>
- .variants ⇒ Array(Anthropic::Models::Beta::BetaCacheMissModelChanged, Anthropic::Models::Beta::BetaCacheMissSystemChanged, Anthropic::Models::Beta::BetaCacheMissToolsChanged, Anthropic::Models::Beta::BetaCacheMissMessagesChanged, Anthropic::Models::Beta::BetaCacheMissPreviousMessageNotFound, Anthropic::Models::Beta::BetaCacheMissUnavailable)
Methods included from Internal::Type::Union
==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variants
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Class Method Details
.new(type:, **args) ⇒ Anthropic::Models::Beta::BetaCacheMissModelChanged, ...
Creates a new instance of the variant class whose type matches the given
value, passing the remaining arguments to its constructor.
Some parameter documentations has been truncated, see Anthropic::Models::Beta::BetaCacheMissReason for more details.
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/anthropic/models/beta/beta_cache_miss_reason.rb', line 54 def self.new(type:, **args) case type.to_sym when :model_changed Anthropic::Beta::BetaCacheMissModelChanged.new(**args) when :system_changed Anthropic::Beta::BetaCacheMissSystemChanged.new(**args) when :tools_changed Anthropic::Beta::BetaCacheMissToolsChanged.new(**args) when :messages_changed Anthropic::Beta::BetaCacheMissMessagesChanged.new(**args) when :previous_message_not_found Anthropic::Beta::BetaCacheMissPreviousMessageNotFound.new(**args) when :unavailable Anthropic::Beta::BetaCacheMissUnavailable.new(**args) else raise ArgumentError, "unknown type: #{type}" end end |
.values ⇒ Array<Symbol>
|
|
# File 'lib/anthropic/models/beta/beta_cache_miss_reason.rb', line 33
|
.variants ⇒ Array(Anthropic::Models::Beta::BetaCacheMissModelChanged, Anthropic::Models::Beta::BetaCacheMissSystemChanged, Anthropic::Models::Beta::BetaCacheMissToolsChanged, Anthropic::Models::Beta::BetaCacheMissMessagesChanged, Anthropic::Models::Beta::BetaCacheMissPreviousMessageNotFound, Anthropic::Models::Beta::BetaCacheMissUnavailable)
|
|
# File 'lib/anthropic/models/beta/beta_cache_miss_reason.rb', line 37
|