Class FileSearchToolResource

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

public final class FileSearchToolResource extends Object implements com.azure.json.JsonSerializable<FileSearchToolResource>
A set of resources that are used by the `file_search` tool.
  • Constructor Details

    • FileSearchToolResource

      public FileSearchToolResource()
      Creates an instance of FileSearchToolResource class.
  • Method Details

    • getVectorStoreIds

      public List<String> getVectorStoreIds()
      Get the vectorStoreIds property: The ID of the vector store attached to this agent. There can be a maximum of 1 vector store attached to the agent.
      Returns:
      the vectorStoreIds value.
    • setVectorStoreIds

      public FileSearchToolResource setVectorStoreIds(List<String> vectorStoreIds)
      Set the vectorStoreIds property: The ID of the vector store attached to this agent. There can be a maximum of 1 vector store attached to the agent.
      Parameters:
      vectorStoreIds - the vectorStoreIds value to set.
      Returns:
      the FileSearchToolResource object itself.
    • getVectorStores

      public List<VectorStoreConfigurations> getVectorStores()
      Get the vectorStores property: The list of vector store configuration objects from Azure. This list is limited to one element. The only element of this list contains the list of azure asset IDs used by the search tool.
      Returns:
      the vectorStores value.
    • setVectorStores

      public FileSearchToolResource setVectorStores(List<VectorStoreConfigurations> vectorStores)
      Set the vectorStores property: The list of vector store configuration objects from Azure. This list is limited to one element. The only element of this list contains the list of azure asset IDs used by the search tool.
      Parameters:
      vectorStores - the vectorStores value to set.
      Returns:
      the FileSearchToolResource object itself.
    • toJson

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

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