VectorStoreFile Class
- java.
lang. Object - com.
azure. ai. agents. persistent. models. VectorStoreFile
- com.
Implements
public final class VectorStoreFile
implements JsonSerializable<VectorStoreFile>
Description of a file attached to a vector store.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Vector |
fromJson(JsonReader jsonReader)
Reads an instance of Vector |
|
Vector |
getChunkingStrategy()
Get the chunking |
|
Offset |
getCreatedAt()
Get the created |
| String |
getId()
Get the id property: The identifier, which can be referenced in API endpoints. |
|
Vector |
getLastError()
Get the last |
| 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 file, which can be either `in_progress`, `completed`, `cancelled`, or `failed`. |
| int |
getUsageBytes()
Get the usage |
| String |
getVectorStoreId()
Get the vector |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static VectorStoreFile fromJson(JsonReader jsonReader)
Reads an instance of VectorStoreFile from the JsonReader.
Parameters:
Returns:
Throws:
getChunkingStrategy
public VectorStoreChunkingStrategyResponse getChunkingStrategy()
Get the chunkingStrategy property: The strategy used to chunk the file.
Returns:
getCreatedAt
public OffsetDateTime getCreatedAt()
Get the createdAt property: The Unix timestamp (in seconds) for when the vector store file was created.
Returns:
getId
public String getId()
Get the id property: The identifier, which can be referenced in API endpoints.
Returns:
getLastError
public VectorStoreFileError getLastError()
Get the lastError property: The last error associated with this vector store file. Will be `null` if there are no errors.
Returns:
getObject
public String getObject()
Get the object property: The object type, which is always `vector_store.file`.
Returns:
getStatus
public VectorStoreFileStatus getStatus()
Get the status property: 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.
Returns:
getUsageBytes
public int getUsageBytes()
Get the usageBytes property: The total vector store usage in bytes. Note that this may be different from the original file size.
Returns:
getVectorStoreId
public String getVectorStoreId()
Get the vectorStoreId property: The ID of the vector store that the file is attached to.
Returns: