Class OpenaiChatResponse.Message

java.lang.Object
com.intellijava.core.model.OpenaiChatResponse.Message
Enclosing class:
OpenaiChatResponse

public static class OpenaiChatResponse.Message extends Object
Message represents a message exchanged in a chat session.
  • Constructor Details

    • Message

      public Message()
      Message default constructor.
  • Method Details

    • getRole

      public String getRole()
      Gets the role of the sender of the message.
      Returns:
      the role of the sender of the message.
    • setRole

      public void setRole(String role)
      Sets the role of the sender of the message.
      Parameters:
      role - the role of the sender of the message.
    • getContent

      public String getContent()
      Gets the content of the message.
      Returns:
      the content of the message.
    • setContent

      public void setContent(String content)
      Sets the content of the message.
      Parameters:
      content - the content of the message.