Class: OpenAI::Models::VectorStore
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::VectorStore
- Defined in:
- lib/openai/models/vector_store.rb
Overview
Defined Under Namespace
Modules: Status Classes: ExpiresAfter, FileCounts
Instance Attribute Summary collapse
-
#created_at ⇒ Integer
The Unix timestamp (in seconds) for when the vector store was created.
-
#expires_after ⇒ OpenAI::Models::VectorStore::ExpiresAfter?
The expiration policy for a vector store.
-
#expires_at ⇒ Integer?
The Unix timestamp (in seconds) for when the vector store will expire.
- #file_counts ⇒ OpenAI::Models::VectorStore::FileCounts
-
#id ⇒ String
The identifier, which can be referenced in API endpoints.
-
#last_active_at ⇒ Integer?
The Unix timestamp (in seconds) for when the vector store was last active.
-
#metadata ⇒ Hash{Symbol=>String}?
Set of 16 key-value pairs that can be attached to an object.
-
#name ⇒ String
The name of the vector store.
-
#object ⇒ Symbol, :vector_store
The object type, which is always ‘vector_store`.
-
#status ⇒ Symbol, OpenAI::Models::VectorStore::Status
The status of the vector store, which can be either ‘expired`, `in_progress`, or `completed`.
-
#usage_bytes ⇒ Integer
The total number of bytes used by the files in the vector store.
Class Method 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
|
# File 'lib/openai/models/vector_store.rb', line 79
|
Instance Attribute Details
#created_at ⇒ Integer
The Unix timestamp (in seconds) for when the vector store was created.
17 |
# File 'lib/openai/models/vector_store.rb', line 17 required :created_at, Integer |
#expires_after ⇒ OpenAI::Models::VectorStore::ExpiresAfter?
The expiration policy for a vector store.
71 |
# File 'lib/openai/models/vector_store.rb', line 71 optional :expires_after, -> { OpenAI::VectorStore::ExpiresAfter } |
#expires_at ⇒ Integer?
The Unix timestamp (in seconds) for when the vector store will expire.
77 |
# File 'lib/openai/models/vector_store.rb', line 77 optional :expires_at, Integer, nil?: true |
#file_counts ⇒ OpenAI::Models::VectorStore::FileCounts
22 |
# File 'lib/openai/models/vector_store.rb', line 22 required :file_counts, -> { OpenAI::VectorStore::FileCounts } |
#id ⇒ String
The identifier, which can be referenced in API endpoints.
11 |
# File 'lib/openai/models/vector_store.rb', line 11 required :id, String |
#last_active_at ⇒ Integer?
The Unix timestamp (in seconds) for when the vector store was last active.
28 |
# File 'lib/openai/models/vector_store.rb', line 28 required :last_active_at, Integer, nil?: true |
#metadata ⇒ Hash{Symbol=>String}?
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
39 |
# File 'lib/openai/models/vector_store.rb', line 39 required :metadata, OpenAI::Internal::Type::HashOf[String], nil?: true |
#name ⇒ String
The name of the vector store.
45 |
# File 'lib/openai/models/vector_store.rb', line 45 required :name, String |
#object ⇒ Symbol, :vector_store
The object type, which is always ‘vector_store`.
51 |
# File 'lib/openai/models/vector_store.rb', line 51 required :object, const: :vector_store |
#status ⇒ Symbol, OpenAI::Models::VectorStore::Status
The status of the vector store, which can be either ‘expired`, `in_progress`, or `completed`. A status of `completed` indicates that the vector store is ready for use.
59 |
# File 'lib/openai/models/vector_store.rb', line 59 required :status, enum: -> { OpenAI::VectorStore::Status } |
#usage_bytes ⇒ Integer
The total number of bytes used by the files in the vector store.
65 |
# File 'lib/openai/models/vector_store.rb', line 65 required :usage_bytes, Integer |
Class Method Details
.values ⇒ Array<Symbol>
|
# File 'lib/openai/models/vector_store.rb', line 164
|