VectorStore class

A vector store for semantic file search.

Vector stores process and index files for efficient semantic search within the Assistants API.

Annotations
  • @immutable

Constructors

VectorStore({required String id, required String object, required int createdAt, required String? name, required int usageBytes, required VectorStoreFileCounts fileCounts, required VectorStoreStatus status, ExpirationPolicy? expiresAfter, int? expiresAt, int? lastActiveAt, required Map<String, String> metadata})
Creates a VectorStore.
const
VectorStore.fromJson(Map<String, dynamic> json)
Creates a VectorStore from JSON.
factory

Properties

createdAt int
The Unix timestamp when the vector store was created.
final
expiresAfter ExpirationPolicy?
The expiration policy.
final
expiresAt int?
The Unix timestamp when the vector store expires.
final
fileCounts VectorStoreFileCounts
File counts by status.
final
hashCode int
The hash code for this object.
no setteroverride
id String
The vector store identifier.
final
isReady bool
Whether the vector store is ready for use.
no setter
lastActiveAt int?
The Unix timestamp of last activity.
final
metadata Map<String, String>
Custom metadata.
final
name String?
The name of the vector store.
final
object String
The object type (always "vector_store").
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status VectorStoreStatus
The status of the vector store.
final
usageBytes int
The total size of files in bytes.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts to JSON.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override