Class RunStepDeltaCodeInterpreterImageOutput
java.lang.Object
com.azure.ai.openai.assistants.models.RunStepDeltaCodeInterpreterOutput
com.azure.ai.openai.assistants.models.RunStepDeltaCodeInterpreterImageOutput
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RunStepDeltaCodeInterpreterOutput>
Represents an image output as produced the Code interpreter tool and as represented in a streaming run step's delta
tool calls collection.
-
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of RunStepDeltaCodeInterpreterImageOutput from the JsonReader.getImage()
Get the image property: The image data for the Code Interpreter tool call output.getType()
Get the type property: The type of the streaming run step tool call's Code Interpreter output.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class com.azure.ai.openai.assistants.models.RunStepDeltaCodeInterpreterOutput
getIndex
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
-
Method Details
-
getType
Get the type property: The type of the streaming run step tool call's Code Interpreter output.- Overrides:
getType
in classRunStepDeltaCodeInterpreterOutput
- Returns:
- the type value.
-
getImage
Get the image property: The image data for the Code Interpreter tool call output.- Returns:
- the image value.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<RunStepDeltaCodeInterpreterOutput>
- Overrides:
toJson
in classRunStepDeltaCodeInterpreterOutput
- Throws:
IOException
-
fromJson
public static RunStepDeltaCodeInterpreterImageOutput fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RunStepDeltaCodeInterpreterImageOutput from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of RunStepDeltaCodeInterpreterImageOutput if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the RunStepDeltaCodeInterpreterImageOutput.
-