VectorStoreFile

@Serializable
data class VectorStoreFile(val id: FileId, val usageBytes: Long? = null, val createdAt: Long, val vectorStoreId: VectorStoreId, val status: Status, val lastError: LastError? = null)

A list of files attached to a vector store.

Constructors

Link copied to clipboard
constructor(id: FileId, usageBytes: Long? = null, createdAt: Long, vectorStoreId: VectorStoreId, status: Status, lastError: LastError? = null)

Properties

Link copied to clipboard
@SerialName(value = "created_at")
val createdAt: Long

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

Link copied to clipboard
@SerialName(value = "id")
val id: FileId

The identifier, which can be referenced in API endpoints.

Link copied to clipboard
@SerialName(value = "last_error")
val lastError: LastError? = null

The last error associated with this vector store file. Will be null if there are no errors.

Link copied to clipboard
@SerialName(value = "status")
val status: Status

The status of the vector store file, which can be either in_progress, completed, cancelled, or failed. The status completed indicates that the vector store file is ready for use.

Link copied to clipboard
@SerialName(value = "usage_bytes")
val usageBytes: Long? = null

Usage bytes.

Link copied to clipboard
@SerialName(value = "vector_store_id")
val vectorStoreId: VectorStoreId

The ID of the vector store that the File is attached to.