[]
        
(Showing Draft Content)

AIMessage

Class AIMessage

java.lang.Object
com.grapecity.documents.excel.AIMessage

public class AIMessage extends Object
Represents a message in a conversation with an AI model.
  • Constructor Details

    • AIMessage

      public AIMessage(String role, String content)
      Initializes a new instance of the Message class with the specified role and content.
      Parameters:
      role - The role of the message author. Common values: "system", "user"
      content - The content of the message.
  • Method Details

    • getRole

      public String getRole()
      Gets the role of the message author. Common values: "system", "user"
    • setRole

      public void setRole(String role)
      Sets the role of the message author. Common values: "system", "user"
    • getContent

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

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