Class MessageInputImageFileBlock
java.lang.Object
com.azure.ai.agents.persistent.models.MessageInputContentBlock
com.azure.ai.agents.persistent.models.MessageInputImageFileBlock
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MessageInputContentBlock>
An image-file block in a new message, referencing an internally uploaded image by file ID.
-
Constructor Summary
ConstructorsConstructorDescriptionMessageInputImageFileBlock(MessageImageFileParam imageFile) Creates an instance of MessageInputImageFileBlock class. -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageInputImageFileBlockfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MessageInputImageFileBlock from the JsonReader.Get the imageFile property: Information about the referenced image file, including file ID and optional detail level.getType()Get the type property: Specifies which kind of content block this is (text, image_file, image_url, etc.).com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods 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
-
Constructor Details
-
MessageInputImageFileBlock
Creates an instance of MessageInputImageFileBlock class.- Parameters:
imageFile- the imageFile value to set.
-
-
Method Details
-
getType
Get the type property: Specifies which kind of content block this is (text, image_file, image_url, etc.).- Overrides:
getTypein classMessageInputContentBlock- Returns:
- the type value.
-
getImageFile
Get the imageFile property: Information about the referenced image file, including file ID and optional detail level.- Returns:
- the imageFile value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<MessageInputContentBlock>- Overrides:
toJsonin classMessageInputContentBlock- Throws:
IOException
-
fromJson
public static MessageInputImageFileBlock fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of MessageInputImageFileBlock from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of MessageInputImageFileBlock 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 MessageInputImageFileBlock.
-