FirebaseSmartReply

public class FirebaseSmartReply extends Object
implements Closeable

This class is deprecated.
The standalone ML Kit SDK replaces this API. For more information, refer to the migration guide.

Entry class for Firebase Smart Reply, which automatically suggests meaningful replies to a user input message.

Public Method Summary

void
close()
Closes the underlying resources including models used for reply inference.
Task<SmartReplySuggestionResult>
suggestReplies(List<FirebaseTextMessage> textMessages)
Returns suggested meaningful replies to a user input message.

Inherited Method Summary

Public Methods

public void close ()

Closes the underlying resources including models used for reply inference.

Throws
IOException

public Task<SmartReplySuggestionResult> suggestReplies (List<FirebaseTextMessage> textMessages)

Returns suggested meaningful replies to a user input message.

Right now, English is the only supported language.

Parameters
textMessages A list of messages from which the API generates smart replies. The messages list should contain most recent conversation context for all users participating in the conversation in chronological order. Internally, SmartReply considers the last N messages (N changes with model) to generate the best reply suggestions.
Returns