SmartReply class

A class that suggests smart replies for given input text.

Constructors

SmartReply()

Properties

conversation List<Message>
The sequence of chat Messages to generate a suggestion for.
no setter
hashCode int
The hash code for this object.
no setterinherited
id String
Instance id.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addMessageToConversationFromLocalUser(String message, int timestamp) → void
Adds a Message to the conversation for local user.
addMessageToConversationFromRemoteUser(String message, int timestamp, String userId) → void
Adds a Message to the conversation for a remote user.
clearConversation() → void
Clears the conversation.
close() Future<void>
Closes the underlying resources including models used for reply inference.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
suggestReplies() Future<SmartReplySuggestionResult>
Suggests possible replies in the context of a chat conversation.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited