MLKitSmartReply Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
MLKSmartReply
@interface MLKSmartReply : 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
Objective-C
+ (nonnull MLKSmartReply *)smartReply;
Return Value
A SmartReply
instance that provides suggested replies.
-
Suggests replies in the context of a chat conversation.
Parameters
messages
|
The sequence of chat messages to generate a suggestion for.
|
completion
|
Handler to call back on the main queue with the suggestion result or error.
|
-
Declaration
Objective-C
- (nonnull instancetype)init;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["`MLKSmartReply` suggests smart replies for given input text within a chat conversation."],["It provides a method to get a `SmartReply` instance that is thread-safe."],["The `suggestRepliesForMessages:completion:` method generates reply suggestions based on a sequence of chat messages and returns the result or error through a completion handler."],["Direct initialization of `MLKSmartReply` is unavailable."]]],[]]