Module: Anthropic::Models::CacheControlEphemeral::TTL

Extended by:
Internal::Type::Enum
Defined in:
lib/anthropic/models/cache_control_ephemeral.rb,
sig/anthropic/models/cache_control_ephemeral.rbs

Overview

The time-to-live for the cache control breakpoint.

This may be one the following values:

  • 5m: 5 minutes
  • 1h: 1 hour

Defaults to 5m. See prompt caching pricing for details.

See Also:

  • Anthropic::Models::CacheControlEphemeral#ttl

Constant Summary collapse

TTL_5M =

Returns:

  • (:"5m")
:"5m"
TTL_1H =

Returns:

  • (:"1h")
:"1h"

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Enum

==, ===, coerce, dump, hash, inspect, to_sorbet_type, 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

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/anthropic/models/cache_control_ephemeral.rb', line 52

Instance Method Details

#self?.values::Array[Anthropic::Models::CacheControlEphemeral::ttl]

Returns:

  • (::Array[Anthropic::Models::CacheControlEphemeral::ttl])


33
# File 'sig/anthropic/models/cache_control_ephemeral.rbs', line 33

def self?.values: -> ::Array[Anthropic::Models::CacheControlEphemeral::ttl]