VectorStoreRequest

@Serializable
class VectorStoreRequest(val fileIds: List<FileId>? = null, val name: String? = null, val expiresAfter: ExpirationPolicy? = null, val metadata: Map<String, String>? = null)

A request to create a new vector store.

Constructors

Link copied to clipboard
constructor(fileIds: List<FileId>? = null, name: String? = null, expiresAfter: ExpirationPolicy? = null, metadata: Map<String, String>? = null)

Properties

Link copied to clipboard
@SerialName(value = "expires_after")
val expiresAfter: ExpirationPolicy? = null

The expiration policy for a vector store.

Link copied to clipboard
@SerialName(value = "file_ids")
val fileIds: List<FileId>? = null

A list of File IDs that the vector store should use. Useful for tools like file_search that can access files. This field can be part of creation requests, but not update requests.

Link copied to clipboard
@SerialName(value = "metadata")
val metadata: Map<String, String>? = null

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. Keys can be a maximum of 64 characters long, and values can be a maximum of 512 characters long.

Link copied to clipboard
@SerialName(value = "name")
val name: String? = null

The name of the vector store.