Module: OpenAI::Models::Beta::ThreadCreateAndRunParams::TruncationStrategy::Type

Extended by:
Internal::Type::Enum
Defined in:
lib/openai/models/beta/thread_create_and_run_params.rb

Overview

The truncation strategy to use for the thread. The default is ‘auto`. If set to `last_messages`, the thread will be truncated to the n most recent messages in the thread. When set to `auto`, messages in the middle of the thread will be dropped to fit the context length of the model, `max_prompt_tokens`.

See Also:

Constant Summary collapse

AUTO =
:auto
LAST_MESSAGES =
:last_messages

Class 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/beta/thread_create_and_run_params.rb', line 693