Class SmartReplyMessage
java.lang.Object
com.codename1.ai.language.SmartReplyMessage
One message supplied to the on-device smart-reply model.
-
Constructor Summary
ConstructorsConstructorDescriptionSmartReplyMessage(String text, String participantId, boolean localUser, long timestampMillis) Creates one conversation turn used to generate reply suggestions. -
Method Summary
-
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;nullbecomes an empty stringparticipantId- stable speaker id used to group conversation turns;nullbecomes"remote"localUser- whether this message was written by the current usertimestampMillis- message time in Unix epoch milliseconds
-
-
Method Details
-
getText
- Returns:
- message text supplied to the local model
-
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
-