Class CreateCodeInterpreterToolResourceOptions

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

public final class CreateCodeInterpreterToolResourceOptions extends Object implements com.azure.json.JsonSerializable<CreateCodeInterpreterToolResourceOptions>
A set of resources that will be used by the `code_interpreter` tool. Request object.
  • Constructor Details

    • CreateCodeInterpreterToolResourceOptions

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

    • getFileIds

      public List<String> getFileIds()
      Get the fileIds property: A list of file IDs made available to the `code_interpreter` tool.
      Returns:
      the fileIds value.
    • setFileIds

      Set the fileIds property: A list of file IDs made available to the `code_interpreter` tool.
      Parameters:
      fileIds - the fileIds value to set.
      Returns:
      the CreateCodeInterpreterToolResourceOptions 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<CreateCodeInterpreterToolResourceOptions>
      Throws:
      IOException
    • fromJson

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