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 Summary
ConstructorsConstructorDescriptionCreates an instance of CreateCodeInterpreterToolResourceOptions class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of CreateCodeInterpreterToolResourceOptions from the JsonReader.Get the fileIds property: A list of file IDs made available to the `code_interpreter` tool.setFileIds
(List<String> fileIds) Set the fileIds property: A list of file IDs made available to the `code_interpreter` tool.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CreateCodeInterpreterToolResourceOptions
public CreateCodeInterpreterToolResourceOptions()Creates an instance of CreateCodeInterpreterToolResourceOptions class.
-
-
Method Details
-
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
- Specified by:
toJson
in interfacecom.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.
-