Buka konsol

FirebaseMLNLSmartReply Framework Reference

FIRSmartReply


@interface FIRSmartReply : NSObject

An object that suggests smart replies for given input text.

  • Unavailable.

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • Suggests replies in the context of a chat conversation.

    Declaration

    Objective-C

    - (void)suggestRepliesForMessages:(nonnull NSArray<FIRTextMessage *> *)messages
                           completion:(nonnull FIRSmartReplyCallback)completion;

    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.