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

Object
clone()
boolean
equals(Object arg0)
void
finalize()
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()
abstract void
close()
abstract void
close()

Public Methods

public void close ()

Closes the underlying resources including models used for reply inference.

Throws

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

Firebase gives you the tools and infrastructure you need to build better mobile and web apps, improve app quality, and grow your business.

Updated Feb 21, 2025

Firebase gives you the tools and infrastructure you need to build better mobile and web apps, improve app quality, and grow your business.

Updated Feb 20, 2025

Firebase gives you the tools and infrastructure you need to build better mobile and web apps, improve app quality, and grow your business.

Updated Feb 20, 2025