Module: Anthropic::Models::Beta::BetaFallbackCreditTokenParam::Mode
- Extended by:
- Internal::Type::Enum
- Defined in:
- lib/anthropic/models/beta/beta_fallback_credit_token_param.rb,
sig/anthropic/models/beta/beta_fallback_credit_token_param.rbs
Overview
How a failing token affects the retry. strict (the default, and the
bare-string behavior): a failing redemption is a 400 and the retry is not
served. best_effort: the retry is served either way — a token-layer failure no
longer rejects the request; the retry proceeds at normal price and the outcome
is reported on the response's usage.fallback_credit. Two failures stay hard in
both modes: a malformed token, and combining fallback_credit_token with
fallbacks.
Constant Summary collapse
- STRICT =
:strict- BEST_EFFORT =
:best_effort
Instance Method Summary collapse
Methods included from Internal::Type::Enum
==, ===, coerce, dump, hash, inspect, to_sorbet_type, values, values
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
Instance Method Details
#self?.values ⇒ ::Array[Anthropic::Models::Beta::BetaFallbackCreditTokenParam::mode]
39 |
# File 'sig/anthropic/models/beta/beta_fallback_credit_token_param.rbs', line 39
def self?.values: -> ::Array[Anthropic::Models::Beta::BetaFallbackCreditTokenParam::mode]
|