Interface ConversationCanceller

    • Method Detail

      • setConversation

        void setConversation​(@NotNull
                             @NotNull Conversation conversation)
        Sets the conversation this ConversationCanceller can optionally cancel.
        Parameters:
        conversation - A conversation.
      • cancelBasedOnInput

        boolean cancelBasedOnInput​(@NotNull
                                   @NotNull ConversationContext context,
                                   @NotNull
                                   @NotNull String input)
        Cancels a conversation based on user input.
        Parameters:
        context - Context information about the conversation.
        input - The input text from the user.
        Returns:
        True to cancel the conversation, False otherwise.