Class: OpenAI::Models::Beta::ChatKit::ChatSessionFileUpload

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/chatkit/chat_session_file_upload.rb,
sig/openai/models/beta/chatkit/chat_session_file_upload.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(enabled:, max_file_size:, max_files:) ⇒ ChatSessionFileUpload

Returns a new instance of ChatSessionFileUpload.

Parameters:

  • enabled —

    Indicates if uploads are enabled for the session.

  • max_file_size —

    Maximum upload size in megabytes.

  • max_files —

    Maximum number of uploads allowed during the session.

  • enabled: (Boolean)
  • max_file_size: (Integer, nil)
  • max_files: (Integer, nil)


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

Instance Attribute Details

#enabled ⇒ Boolean

Indicates if uploads are enabled for the session.

Returns:



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

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

#max_file_size ⇒ Integer?

Maximum upload size in megabytes.

Returns:

  • (Integer, nil)


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

required :max_file_size, Integer, nil?: true

#max_files ⇒ Integer?

Maximum number of uploads allowed during the session.

Returns:

  • (Integer, nil)


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

required :max_files, Integer, nil?: true

Instance Method Details

#to_hash ⇒ { enabled: bool, max_file_size: Integer?, max_files: Integer? }

Returns:

  • ({ enabled: bool, max_file_size: Integer?, max_files: Integer? })


30
31
32
33
34
# File 'sig/openai/models/beta/chatkit/chat_session_file_upload.rbs', line 30

def to_hash: -> {
  enabled: bool,
  max_file_size: Integer?,
  max_files: Integer?
}