Module: Anthropic::Models::Beta::BetaFallbacksParam

Extended by:
Internal::Type::Union
Defined in:
lib/anthropic/models/beta/beta_fallbacks_param.rb,
sig/anthropic/models/beta/beta_fallbacks_param.rbs

Overview

Opt-in server-side retry on one or more substitute models when the requested model declines for policy reasons. Tried in order: if the first entry also declines, the second is tried, and so on. Some models don't support fallbacks; on those models, a list of fallback models returns a 400 error. See Server-side fallback. The string "default" requests the requested model's server-defined default fallback configuration. On a model that doesn't support fallbacks, the request runs on the requested model alone, so a declined request stays declined.

Constant Summary collapse

BetaFallbackParamArray =
Anthropic::Internal::Type::ArrayOf[-> { Anthropic::Beta::BetaFallbackParam }]

Class Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type

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

.variants ⇒ Array(Symbol, :default, Array<Anthropic::Models::Beta::BetaFallbackParam>)

Returns:



# File 'lib/anthropic/models/beta/beta_fallbacks_param.rb', line 21