AI-generated Key Takeaways
-
SmartReplySuggestionResult is the result from SmartReplyGenerator, containing a list of SmartReplySuggestions.
-
The result includes a status indicating the success or failure of generating suggestions.
-
Possible statuses include success, language not supported, or no reply found.
-
The result provides a list of suggested replies, if successful, sorted by confidence.
The suggested result from the SmartReplyGenerator
for the given text. It contains a list of SmartReplySuggestions.
Nested Class Summary
| @interface | SmartReplySuggestionResult.Status | A possible status code for a Smart Reply suggestion attempt. | |
Constant Summary
| int | STATUS_NOT_SUPPORTED_LANGUAGE | The Smart Reply model currently doesn't support the language used in the conversation. |
| int | STATUS_NO_REPLY | The Smart Reply model cannot determine an applicable reply. |
| int | STATUS_SUCCESS | The Smart Reply model successfully generated (1-3) replies. |
Public Method Summary
| int |
getStatus()
Gets the status of the Smart Reply suggestion result.
|
| List<SmartReplySuggestion> |
getSuggestions()
A list of the suggested responses sorted by confidence (highest to lowest).
|
| String |
toString()
A textual description of the suggested replies, including their texts.
|
Inherited Method Summary
Constants
public static final int STATUS_NOT_SUPPORTED_LANGUAGE
The Smart Reply model currently doesn't support the language used in the conversation.
public static final int STATUS_NO_REPLY
The Smart Reply model cannot determine an applicable reply.
public static final int STATUS_SUCCESS
The Smart Reply model successfully generated (1-3) replies.
Public Methods
public int getStatus ()
Gets the status of the Smart Reply suggestion result.
Possible values are:
STATUS_SUCCESSwhengetSuggestions()will successfully provide up to three meaningful suggestions.STATUS_NOT_SUPPORTED_LANGUAGEwhen the language used in the conversation is not supported by the Smart Reply model.STATUS_NO_REPLYwhen the Smart Reply model cannot determine an applicable reply.
public List<SmartReplySuggestion> getSuggestions ()
A list of the suggested responses sorted by confidence (highest to lowest).
public String toString ()
A textual description of the suggested replies, including their texts.