VectorStoreFile class

A file in a vector store.

Files are processed and indexed for semantic search.

Annotations
  • @immutable

Constructors

VectorStoreFile({required String id, required String object, required int usageBytes, required int createdAt, required String vectorStoreId, required VectorStoreFileStatus status, VectorStoreFileError? lastError, ChunkingStrategy? chunkingStrategy})
Creates a VectorStoreFile.
const
VectorStoreFile.fromJson(Map<String, dynamic> json)
Creates a VectorStoreFile from JSON.
factory

Properties

chunkingStrategy ChunkingStrategy?
The chunking strategy used.
final
createdAt int
The Unix timestamp when the file was added.
final
hashCode int
The hash code for this object.
no setteroverride
id String
The file identifier.
final
isFailed bool
Whether the file failed processing.
no setter
isReady bool
Whether the file is ready.
no setter
lastError VectorStoreFileError?
The last error if processing failed.
final
object String
The object type (always "vector_store.file").
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status VectorStoreFileStatus
The processing status.
final
usageBytes int
The size of the file in bytes.
final
vectorStoreId String
The vector store ID this file belongs to.
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