Class SmartReplyMessage

java.lang.Object
com.codename1.ai.language.SmartReplyMessage

public final class SmartReplyMessage extends Object
One message supplied to the on-device smart-reply model.
  • Constructor Details

    • SmartReplyMessage

      public SmartReplyMessage(String text, String participantId, boolean localUser, long timestampMillis)
      Creates one conversation turn used to generate reply suggestions.
      Parameters:
      text - message body; null becomes an empty string
      participantId - stable speaker id used to group conversation turns; null becomes "remote"
      localUser - whether this message was written by the current user
      timestampMillis - message time in Unix epoch milliseconds
  • Method Details

    • getText

      public String getText()
      Returns:
      message text supplied to the local model
    • getParticipantId

      public String getParticipantId()
      Returns:
      stable participant identifier used to group remote speakers, never null
    • isLocalUser

      public boolean isLocalUser()
      Returns:
      whether this message was authored by the device user
    • getTimestampMillis

      public long getTimestampMillis()
      Returns:
      conversation timestamp in milliseconds since the epoch