END_OF_CONVERSATION
Constructor and Description |
---|
MessagePrompt() |
Modifier and Type | Method and Description |
---|---|
@Nullable Prompt |
acceptInput(@NotNull ConversationContext context,
@Nullable String input)
Accepts and ignores any user input, returning the next prompt in the
prompt graph instead.
|
boolean |
blocksForInput(@NotNull ConversationContext context)
Message prompts never wait for user input before continuing.
|
protected abstract @Nullable Prompt |
getNextPrompt(@NotNull 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 @NotNull ConversationContext context)
blocksForInput
in interface Prompt
context
- Context information about the conversation.@Nullable public @Nullable Prompt acceptInput(@NotNull @NotNull ConversationContext context, @Nullable @Nullable String input)
acceptInput
in interface Prompt
context
- Context information about the conversation.input
- Ignored.@Nullable protected abstract @Nullable Prompt getNextPrompt(@NotNull @NotNull ConversationContext context)
context
- Context information about the conversation.Copyright © 2021. All rights reserved.