Module: OpenAI::Models::Realtime::RealtimeTruncation::RealtimeTruncationStrategy

Extended by:
Internal::Type::Enum
Defined in:
lib/openai/models/realtime/realtime_truncation.rb,
sig/openai/models/realtime/realtime_truncation.rbs

Overview

The truncation strategy to use for the session. auto is the default truncation strategy. disabled will disable truncation and emit errors when the conversation exceeds the input token limit.

Constant Summary collapse

AUTO =

Returns:

  • (:auto)
:auto
DISABLED =

Returns:

  • (:disabled)
:disabled

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/openai/models/realtime/realtime_truncation.rb', line 42

Instance Method Details

#self?.values::Array[OpenAI::Models::Realtime::RealtimeTruncation::realtime_truncation_strategy]

Returns:

  • (::Array[OpenAI::Models::Realtime::RealtimeTruncation::realtime_truncation_strategy])


19
# File 'sig/openai/models/realtime/realtime_truncation.rbs', line 19

def self?.values: -> ::Array[OpenAI::Models::Realtime::RealtimeTruncation::realtime_truncation_strategy]