Class: OpenAI::Models::VectorStores::VectorStoreFileBatch

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/vector_stores/vector_store_file_batch.rb

Overview

Defined Under Namespace

Modules: Status Classes: FileCounts

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, 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(cancelled: , completed: , failed: , in_progress: , total: ) ⇒ Object

Parameters:

  • cancelled (Integer) (defaults to: )

    The number of files that where cancelled.

  • completed (Integer) (defaults to: )

    The number of files that have been processed.

  • failed (Integer) (defaults to: )

    The number of files that have failed to process.

  • in_progress (Integer) (defaults to: )

    The number of files that are currently being processed.

  • total (Integer) (defaults to: )

    The total number of files.



# File 'lib/openai/models/vector_stores/vector_store_file_batch.rb', line 48

Instance Attribute Details

#created_atInteger

The Unix timestamp (in seconds) for when the vector store files batch was created.

Returns:

  • (Integer)


19
# File 'lib/openai/models/vector_stores/vector_store_file_batch.rb', line 19

required :created_at, Integer

#file_countsOpenAI::Models::VectorStores::VectorStoreFileBatch::FileCounts



24
# File 'lib/openai/models/vector_stores/vector_store_file_batch.rb', line 24

required :file_counts, -> { OpenAI::VectorStores::VectorStoreFileBatch::FileCounts }

#idString

The identifier, which can be referenced in API endpoints.

Returns:

  • (String)


12
# File 'lib/openai/models/vector_stores/vector_store_file_batch.rb', line 12

required :id, String

#objectSymbol, :"vector_store.files_batch"

The object type, which is always ‘vector_store.file_batch`.

Returns:

  • (Symbol, :"vector_store.files_batch")


30
# File 'lib/openai/models/vector_stores/vector_store_file_batch.rb', line 30

required :object, const: :"vector_store.files_batch"

#statusSymbol, OpenAI::Models::VectorStores::VectorStoreFileBatch::Status

The status of the vector store files batch, which can be either ‘in_progress`, `completed`, `cancelled` or `failed`.



37
# File 'lib/openai/models/vector_stores/vector_store_file_batch.rb', line 37

required :status, enum: -> { OpenAI::VectorStores::VectorStoreFileBatch::Status }

#vector_store_idString

Returns:

  • (String)


46
# File 'lib/openai/models/vector_stores/vector_store_file_batch.rb', line 46

required :vector_store_id, String