public interface ConversationCanceller extends Cloneable
Conversation
. A Conversation can have more than one ConversationCanceller.Modifier and Type | Method and Description |
---|---|
boolean |
cancelBasedOnInput(ConversationContext context,
String input)
Cancels a conversation based on user input.
|
ConversationCanceller |
clone()
Allows the
ConversationFactory to duplicate this
ConversationCanceller when creating a new Conversation . |
void |
setConversation(Conversation conversation)
Sets the conversation this ConversationCanceller can optionally cancel.
|
void setConversation(Conversation conversation)
conversation
- A conversation.boolean cancelBasedOnInput(ConversationContext context, String input)
context
- Context information about the conversation.input
- The input text from the user.ConversationCanceller clone()
ConversationFactory
to duplicate this
ConversationCanceller when creating a new Conversation
.
Implementing this method should reset any internal object state.
Copyright © 2021. All rights reserved.