VectorStore Class
- java.
lang. Object - com.
azure. ai. agents. persistent. models. VectorStore
- com.
Implements
public final class VectorStore
implements JsonSerializable<VectorStore>
A vector store is a collection of processed files can be used by the `file_search` tool.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Vector |
fromJson(JsonReader jsonReader)
Reads an instance of Vector |
|
Offset |
getCreatedAt()
Get the created |
|
Vector |
getExpiresAfter()
Get the expires |
|
Offset |
getExpiresAt()
Get the expires |
|
Vector |
getFileCounts()
Get the file |
| String |
getId()
Get the id property: The identifier, which can be referenced in API endpoints. |
|
Offset |
getLastActiveAt()
Get the last |
| Map<String,String> |
getMetadata()
Get the metadata property: A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. |
| String |
getName()
Get the name property: The name of the vector store. |
| String |
getObject()
Get the object property: The object type, which is always `vector_store`. |
|
Vector |
getStatus()
Get the status property: The status of the vector store, which can be either `expired`, `in_progress`, or `completed`. |
| int |
getUsageBytes()
Get the usage |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static VectorStore fromJson(JsonReader jsonReader)
Reads an instance of VectorStore from the JsonReader.
Parameters:
Returns:
Throws:
getCreatedAt
public OffsetDateTime getCreatedAt()
Get the createdAt property: The Unix timestamp (in seconds) for when the vector store was created.
Returns:
getExpiresAfter
public VectorStoreExpirationPolicy getExpiresAfter()
Get the expiresAfter property: Details on when this vector store expires.
Returns:
getExpiresAt
public OffsetDateTime getExpiresAt()
Get the expiresAt property: The Unix timestamp (in seconds) for when the vector store will expire.
Returns:
getFileCounts
public VectorStoreFileCount getFileCounts()
Get the fileCounts property: Files count grouped by status processed or being processed by this vector store.
Returns:
getId
public String getId()
Get the id property: The identifier, which can be referenced in API endpoints.
Returns:
getLastActiveAt
public OffsetDateTime getLastActiveAt()
Get the lastActiveAt property: The Unix timestamp (in seconds) for when the vector store was last active.
Returns:
getMetadata
public Map<String,String> getMetadata()
Get the metadata property: A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.
Returns:
getName
public String getName()
Get the name property: The name of the vector store.
Returns:
getObject
public String getObject()
Get the object property: The object type, which is always `vector_store`.
Returns:
getStatus
public VectorStoreStatus getStatus()
Get the status property: 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.
Returns:
getUsageBytes
public int getUsageBytes()
Get the usageBytes property: The total number of bytes used by the files in the vector store.
Returns: