Class: OpenAI::Models::Beta::ChatKit::ChatSessionHistory

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/chatkit/chat_session_history.rb

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:, recent_threads:) ⇒ Object

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

History retention preferences returned for the session.

Parameters:

  • enabled (Boolean)

    Indicates if chat history is persisted for the session.

  • recent_threads (Integer, nil)

    Number of prior threads surfaced in history views. Defaults to null when all his



# File 'lib/openai/models/beta/chatkit/chat_session_history.rb', line 21

Instance Attribute Details

#enabledBoolean

Indicates if chat history is persisted for the session.

Returns:



12
# File 'lib/openai/models/beta/chatkit/chat_session_history.rb', line 12

required :enabled, OpenAI::Internal::Type::Boolean

#recent_threadsInteger?

Number of prior threads surfaced in history views. Defaults to null when all history is retained.

Returns:

  • (Integer, nil)


19
# File 'lib/openai/models/beta/chatkit/chat_session_history.rb', line 19

required :recent_threads, Integer, nil?: true