Class UpdateToolResourcesOptions

java.lang.Object
com.azure.ai.openai.assistants.models.UpdateToolResourcesOptions
All Implemented Interfaces:
com.azure.json.JsonSerializable<UpdateToolResourcesOptions>

public final class UpdateToolResourcesOptions extends Object implements com.azure.json.JsonSerializable<UpdateToolResourcesOptions>
Request object. A set of resources that are used by the assistant's tools. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.
  • Constructor Details

    • UpdateToolResourcesOptions

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

    • getCodeInterpreter

      public UpdateCodeInterpreterToolResourceOptions getCodeInterpreter()
      Get the codeInterpreter property: Overrides the list of file IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.
      Returns:
      the codeInterpreter value.
    • setCodeInterpreter

      public UpdateToolResourcesOptions setCodeInterpreter(UpdateCodeInterpreterToolResourceOptions codeInterpreter)
      Set the codeInterpreter property: Overrides the list of file IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.
      Parameters:
      codeInterpreter - the codeInterpreter value to set.
      Returns:
      the UpdateToolResourcesOptions object itself.
    • getFileSearch

      public UpdateFileSearchToolResourceOptions getFileSearch()
      Get the fileSearch property: Overrides the vector store attached to this assistant. There can be a maximum of 1 vector store attached to the assistant.
      Returns:
      the fileSearch value.
    • setFileSearch

      Set the fileSearch property: Overrides the vector store attached to this assistant. There can be a maximum of 1 vector store attached to the assistant.
      Parameters:
      fileSearch - the fileSearch value to set.
      Returns:
      the UpdateToolResourcesOptions 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<UpdateToolResourcesOptions>
      Throws:
      IOException
    • fromJson

      public static UpdateToolResourcesOptions fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of UpdateToolResourcesOptions from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of UpdateToolResourcesOptions 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 UpdateToolResourcesOptions.