Share via


VectorStoreDataSource Class

  • java.lang.Object
    • com.azure.ai.agents.persistent.models.VectorStoreDataSource

Implements

public final class VectorStoreDataSource
implements JsonSerializable<VectorStoreDataSource>

The structure, containing Azure asset URI path and the asset type of the file used as a data source for the enterprise file search.

Constructor Summary

Constructor Description
VectorStoreDataSource(String assetIdentifier, VectorStoreDataSourceAssetType assetType)

Creates an instance of VectorStoreDataSource class.

Method Summary

Modifier and Type Method and Description
static VectorStoreDataSource fromJson(JsonReader jsonReader)

Reads an instance of VectorStoreDataSource from the JsonReader.

String getAssetIdentifier()

Get the assetIdentifier property: Asset URI.

VectorStoreDataSourceAssetType getAssetType()

Get the assetType property: The asset type.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

VectorStoreDataSource

public VectorStoreDataSource(String assetIdentifier, VectorStoreDataSourceAssetType assetType)

Creates an instance of VectorStoreDataSource class.

Parameters:

assetIdentifier - the assetIdentifier value to set.
assetType - the assetType value to set.

Method Details

fromJson

public static VectorStoreDataSource fromJson(JsonReader jsonReader)

Reads an instance of VectorStoreDataSource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VectorStoreDataSource if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getAssetIdentifier

public String getAssetIdentifier()

Get the assetIdentifier property: Asset URI.

Returns:

the assetIdentifier value.

getAssetType

public VectorStoreDataSourceAssetType getAssetType()

Get the assetType property: The asset type.

Returns:

the assetType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to