Class: OpenAI::Models::Realtime::RealtimeTruncationRetentionRatio::TokenLimits

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/realtime/realtime_truncation_retention_ratio.rb

Overview

See Also:

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(post_instructions: nil) ⇒ Object

Some parameter documentations has been truncated, see OpenAI::Models::Realtime::RealtimeTruncationRetentionRatio::TokenLimits for more details.

Optional custom token limits for this truncation strategy. If not provided, the model’s default token limits will be used.

Parameters:

  • post_instructions (Integer) (defaults to: nil)

    Maximum tokens allowed in the conversation after instructions (which including t



# File 'lib/openai/models/realtime/realtime_truncation_retention_ratio.rb', line 55

Instance Attribute Details

#post_instructionsInteger?

Maximum tokens allowed in the conversation after instructions (which including tool definitions). For example, setting this to 5,000 would mean that truncation would occur when the conversation exceeds 5,000 tokens after instructions. This cannot be higher than the model’s context window size minus the maximum output tokens.

Returns:

  • (Integer, nil)


53
# File 'lib/openai/models/realtime/realtime_truncation_retention_ratio.rb', line 53

optional :post_instructions, Integer