MessageInputTextBlock Class
- java.
lang. Object - com.
azure. ai. agents. persistent. models. MessageInputContentBlock - com.
azure. ai. agents. persistent. models. MessageInputTextBlock
- com.
- com.
public final class MessageInputTextBlock
extends MessageInputContentBlock
A text block in a new message, containing plain text content.
Constructor Summary
| Constructor | Description |
|---|---|
| MessageInputTextBlock(String text) |
Creates an instance of Message |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Message |
fromJson(JsonReader jsonReader)
Reads an instance of Message |
| String |
getText()
Get the text property: The plain text content for this block. |
|
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 MessageInputContentBlock
Methods inherited from java.lang.Object
Constructor Details
MessageInputTextBlock
public MessageInputTextBlock(String text)
Creates an instance of MessageInputTextBlock class.
Parameters:
Method Details
fromJson
public static MessageInputTextBlock fromJson(JsonReader jsonReader)
Reads an instance of MessageInputTextBlock from the JsonReader.
Parameters:
Returns:
Throws:
getText
public String getText()
Get the text property: The plain text content for this block.
Returns:
getType
public MessageBlockType getType()
Get the type property: Specifies which kind of content block this is (text, image_file, image_url, etc.).
Overrides:
MessageInputTextBlock.getType()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
MessageInputTextBlock.toJson(JsonWriter jsonWriter)Parameters:
Throws: