Page Summary
-
SmartReply is an object used for generating smart replies based on input text.
-
You can get a SmartReply instance using the
smartReply()class method, which is thread-safe. -
The
suggestReplies(for:completion:)method provides reply suggestions within a chat context by analyzing an array of messages and returning results through a completion handler. -
The SmartReply class cannot be directly initialized using the
initmethod.
SmartReply
class
SmartReply
:
NSObject
An object that suggests smart replies for given input text.
-
Gets a smart reply instance that provides suggested replies for input text. This method is thread safe.
Declaration
Swift
class func smartReply () -> SmartReplyReturn Value
A
SmartReplyinstance that provides suggested replies. -
Suggests replies in the context of a chat conversation.
Declaration
Swift
func suggestReplies ( for messages : [ MLKTextMessage ], completion : @escaping SmartReplyCallback )Parameters
messagesThe sequence of chat messages to generate a suggestion for.
completionHandler to call back on the main queue with the suggestion result or error.
-
Unavailable.


