ChatResponseMessage Class
- java.
lang. Object - com.
azure. ai. inference. models. ChatResponseMessage
- com.
Implements
public final class ChatResponseMessage
implements JsonSerializable<ChatResponseMessage>
A representation of a chat message as received in a response.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Chat |
fromJson(JsonReader jsonReader)
Reads an instance of Chat |
| 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<Chat |
getToolCalls()
Get the tool |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static ChatResponseMessage fromJson(JsonReader jsonReader)
Reads an instance of ChatResponseMessage 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.
Returns:
getToolCalls
public List<ChatCompletionsToolCall> 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: