END_OF_CONVERSATION
Constructor | Description |
---|---|
MessagePrompt() |
Modifier and Type | Method | Description |
---|---|---|
Prompt |
acceptInput(ConversationContext context,
String input) |
Accepts and ignores any user input, returning the next prompt in the
prompt graph instead.
|
boolean |
blocksForInput(ConversationContext context) |
Message prompts never wait for user input before continuing.
|
protected abstract Prompt |
getNextPrompt(ConversationContext context) |
Override this method to return the next prompt in the prompt graph.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPromptText
public boolean blocksForInput(@NotNull ConversationContext context)
blocksForInput
in interface Prompt
context
- Context information about the conversation.@Nullable public Prompt acceptInput(@NotNull ConversationContext context, @Nullable String input)
acceptInput
in interface Prompt
context
- Context information about the conversation.input
- Ignored.@Nullable protected abstract Prompt getNextPrompt(@NotNull ConversationContext context)
context
- Context information about the conversation.Copyright © 2020. All rights reserved.