Class VectorStoreConfiguration

java.lang.Object
com.azure.ai.agents.persistent.models.VectorStoreConfiguration
All Implemented Interfaces:
com.azure.json.JsonSerializable<VectorStoreConfiguration>

public final class VectorStoreConfiguration extends Object implements com.azure.json.JsonSerializable<VectorStoreConfiguration>
Vector storage configuration is the list of data sources, used when multiple files can be used for the enterprise file search.
  • Constructor Details

    • VectorStoreConfiguration

      public VectorStoreConfiguration(List<VectorStoreDataSource> dataSources)
      Creates an instance of VectorStoreConfiguration class.
      Parameters:
      dataSources - the dataSources value to set.
  • Method Details

    • getDataSources

      public List<VectorStoreDataSource> getDataSources()
      Get the dataSources property: Data sources.
      Returns:
      the dataSources value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<VectorStoreConfiguration>
      Throws:
      IOException
    • fromJson

      public static VectorStoreConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of VectorStoreConfiguration from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of VectorStoreConfiguration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the VectorStoreConfiguration.