Package com.intellijava.core.model
Class OpenaiChatResponse.Message
java.lang.Object
com.intellijava.core.model.OpenaiChatResponse.Message
- Enclosing class:
OpenaiChatResponse
Message represents a message exchanged in a chat session.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the content of the message.getRole()
Gets the role of the sender of the message.void
setContent
(String content) Sets the content of the message.void
Sets the role of the sender of the message.
-
Constructor Details
-
Message
public Message()Message default constructor.
-
-
Method Details
-
getRole
Gets the role of the sender of the message.- Returns:
- the role of the sender of the message.
-
setRole
Sets the role of the sender of the message.- Parameters:
role
- the role of the sender of the message.
-
getContent
Gets the content of the message.- Returns:
- the content of the message.
-
setContent
Sets the content of the message.- Parameters:
content
- the content of the message.
-