Class FileSearchToolResource

java.lang.Object
com.azure.ai.openai.assistants.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.
  • Method Details

    • getVectorStoreIds

      public List<String> getVectorStoreIds()
      Get the vectorStoreIds property: The ID of the vector store attached to this assistant. There can be a maximum of 1 vector store attached to the assistant.
      Returns:
      the vectorStoreIds value.
    • 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.