Class: OpenAI::Models::Beta::ChatKit::ChatSessionChatKitConfiguration

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/chatkit/chat_session_chatkit_configuration.rb,
sig/openai/models/beta/chatkit/chat_session_chatkit_configuration.rbs

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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(automatic_thread_titling:, file_upload:, history:) ⇒ ChatSessionChatKitConfiguration

Returns a new instance of ChatSessionChatKitConfiguration.

Parameters:

  • automatic_thread_titling —

    Automatic thread titling preferences.

  • file_upload —

    Upload settings for the session.

  • history —

    History retention configuration.

  • automatic_thread_titling: (OpenAI::Beta::ChatKit::ChatSessionAutomaticThreadTitling)
  • file_upload: (OpenAI::Beta::ChatKit::ChatSessionFileUpload)
  • history: (OpenAI::Beta::ChatKit::ChatSessionHistory)


# File 'lib/openai/models/beta/chatkit/chat_session_chatkit_configuration.rb', line 26

Instance Attribute Details

#automatic_thread_titling ⇒ OpenAI::Beta::ChatKit::ChatSessionAutomaticThreadTitling

Automatic thread titling preferences.

Returns:

  • (OpenAI::Beta::ChatKit::ChatSessionAutomaticThreadTitling)


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

required :automatic_thread_titling, -> { OpenAI::Beta::ChatKit::ChatSessionAutomaticThreadTitling }

#file_upload ⇒ OpenAI::Beta::ChatKit::ChatSessionFileUpload

Upload settings for the session.

Returns:

  • (OpenAI::Beta::ChatKit::ChatSessionFileUpload)


18
# File 'lib/openai/models/beta/chatkit/chat_session_chatkit_configuration.rb', line 18

required :file_upload, -> { OpenAI::Beta::ChatKit::ChatSessionFileUpload }

#history ⇒ OpenAI::Beta::ChatKit::ChatSessionHistory

History retention configuration.

Returns:

  • (OpenAI::Beta::ChatKit::ChatSessionHistory)


24
# File 'lib/openai/models/beta/chatkit/chat_session_chatkit_configuration.rb', line 24

required :history, -> { OpenAI::Beta::ChatKit::ChatSessionHistory }

Instance Method Details

#to_hash ⇒ { automatic_thread_titling: OpenAI::Beta::ChatKit::ChatSessionAutomaticThreadTitling, file_upload: OpenAI::Beta::ChatKit::ChatSessionFileUpload, history: OpenAI::Beta::ChatKit::ChatSessionHistory }

Returns:

  • ({ automatic_thread_titling: OpenAI::Beta::ChatKit::ChatSessionAutomaticThreadTitling, file_upload: OpenAI::Beta::ChatKit::ChatSessionFileUpload, history: OpenAI::Beta::ChatKit::ChatSessionHistory })


34
35
36
37
38
# File 'sig/openai/models/beta/chatkit/chat_session_chatkit_configuration.rbs', line 34

def to_hash: -> {
  automatic_thread_titling: OpenAI::Beta::ChatKit::ChatSessionAutomaticThreadTitling,
  file_upload: OpenAI::Beta::ChatKit::ChatSessionFileUpload,
  history: OpenAI::Beta::ChatKit::ChatSessionHistory
}