Class MessageDeltaChunk
java.lang.Object
com.azure.ai.agents.persistent.models.MessageDeltaChunk
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MessageDeltaChunk>
public final class MessageDeltaChunk
extends Object
implements com.azure.json.JsonSerializable<MessageDeltaChunk>
Represents a message delta i.e. any changed fields on a message during streaming.
-
Method Summary
Modifier and TypeMethodDescriptionstatic MessageDeltaChunkfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MessageDeltaChunk from the JsonReader.getDelta()Get the delta property: The delta containing the fields that have changed on the Message.getId()Get the id property: The identifier of the message, which can be referenced in API endpoints.Get the object property: The object type, which is always `thread.message.delta`.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
-
Method Details
-
getId
Get the id property: The identifier of the message, which can be referenced in API endpoints.- Returns:
- the id value.
-
getObject
Get the object property: The object type, which is always `thread.message.delta`.- Returns:
- the object value.
-
getDelta
Get the delta property: The delta containing the fields that have changed on the Message.- Returns:
- the delta value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<MessageDeltaChunk>- Throws:
IOException
-
fromJson
Reads an instance of MessageDeltaChunk from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of MessageDeltaChunk 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 MessageDeltaChunk.
-