StreamingChatResponseMessageUpdate Class
- java.
lang. Object - com.
azure. ai. inference. models. StreamingChatResponseMessageUpdate
- com.
Implements
public final class StreamingChatResponseMessageUpdate
implements JsonSerializable<StreamingChatResponseMessageUpdate>
A representation of a chat message update as received in a streaming response.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Streaming |
fromJson(JsonReader jsonReader)
Reads an instance of Streaming |
| String |
getContent()
Get the content property: The content of the message. |
|
Chat |
getRole()
Get the role property: The chat role associated with the message. |
|
List<Streaming |
getToolCalls()
Get the tool |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static StreamingChatResponseMessageUpdate fromJson(JsonReader jsonReader)
Reads an instance of StreamingChatResponseMessageUpdate from the JsonReader.
Parameters:
Returns:
Throws:
getContent
public String getContent()
Get the content property: The content of the message.
Returns:
getRole
public ChatRole getRole()
Get the role property: The chat role associated with the message. If present, should always be 'assistant'.
Returns:
getToolCalls
public List<StreamingChatResponseToolCallUpdate> getToolCalls()
Get the toolCalls property: The tool calls that must be resolved and have their outputs appended to subsequent input messages for the chat completions request to resolve as configured.
Returns: