Class: OpenAI::Models::Beta::ChatKit::ChatSessionChatKitConfigurationParam::History

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/chatkit/chat_session_chatkit_configuration_param.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(enabled: nil, recent_threads: nil) ⇒ Object

Some parameter documentations has been truncated, see OpenAI::Models::Beta::ChatKit::ChatSessionChatKitConfigurationParam::History for more details.

Configuration for chat history retention. When omitted, history is enabled by default with no limit on recent_threads (null).

Parameters:

  • enabled (Boolean) (defaults to: nil)

    Enables chat users to access previous ChatKit threads. Defaults to true.

  • recent_threads (Integer) (defaults to: nil)

    Number of recent ChatKit threads users have access to. Defaults to unlimited whe



# File 'lib/openai/models/beta/chatkit/chat_session_chatkit_configuration_param.rb', line 109


Instance Attribute Details

#enabledBoolean?

Enables chat users to access previous ChatKit threads. Defaults to true.

Returns:



100
# File 'lib/openai/models/beta/chatkit/chat_session_chatkit_configuration_param.rb', line 100

optional :enabled, OpenAI::Internal::Type::Boolean

#recent_threadsInteger?

Number of recent ChatKit threads users have access to. Defaults to unlimited when unset.

Returns:

  • (Integer, nil)


107
# File 'lib/openai/models/beta/chatkit/chat_session_chatkit_configuration_param.rb', line 107

optional :recent_threads, Integer