Class RunStepDeltaCodeInterpreterImageOutput
java.lang.Object
com.azure.ai.agents.persistent.models.RunStepDeltaCodeInterpreterOutput
com.azure.ai.agents.persistent.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.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class com.azure.ai.agents.persistent.models.RunStepDeltaCodeInterpreterOutput
getIndexMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getTypein 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:
toJsonin interfacecom.azure.json.JsonSerializable<RunStepDeltaCodeInterpreterOutput>- Overrides:
toJsonin 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.
-