ChatRequestMessage Class
- java.
lang. Object - com.
azure. ai. inference. models. ChatRequestMessage
- com.
Implements
public class ChatRequestMessage
implements JsonSerializable<ChatRequestMessage>
An abstract representation of a chat message as provided in a request.
Constructor Summary
| Constructor | Description |
|---|---|
| ChatRequestMessage() |
Creates an instance of Chat |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Chat |
fromJson(JsonReader jsonReader)
Reads an instance of Chat |
|
Chat |
getRole()
Get the role property: The chat role associated with this message. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
ChatRequestMessage
public ChatRequestMessage()
Creates an instance of ChatRequestMessage class.
Method Details
fromJson
public static ChatRequestMessage fromJson(JsonReader jsonReader)
Reads an instance of ChatRequestMessage from the JsonReader.
Parameters:
Returns:
Throws:
getRole
public ChatRole getRole()
Get the role property: The chat role associated with this message.
Returns: