MessageInputContentBlock Class
- java.
lang. Object - com.
azure. ai. agents. persistent. models. MessageInputContentBlock
- com.
Implements
public class MessageInputContentBlock
implements JsonSerializable<MessageInputContentBlock>
Defines a single content block when creating a message. The 'type' field determines whether it is text, an image file, or an external image URL, etc.
Constructor Summary
| Constructor | Description |
|---|---|
| MessageInputContentBlock() |
Creates an instance of Message |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Message |
fromJson(JsonReader jsonReader)
Reads an instance of Message |
|
Message |
getType()
Get the type property: Specifies which kind of content block this is (text, image_file, image_url, etc.). |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
MessageInputContentBlock
public MessageInputContentBlock()
Creates an instance of MessageInputContentBlock class.
Method Details
fromJson
public static MessageInputContentBlock fromJson(JsonReader jsonReader)
Reads an instance of MessageInputContentBlock from the JsonReader.
Parameters:
Returns:
Throws:
getType
public MessageBlockType getType()
Get the type property: Specifies which kind of content block this is (text, image_file, image_url, etc.).
Returns: