public abstract class ValidatingPrompt extends Object implements Prompt
END_OF_CONVERSATION
Constructor and Description |
---|
ValidatingPrompt() |
Modifier and Type | Method and Description |
---|---|
Prompt |
acceptInput(ConversationContext context,
String input)
Accepts and processes input from the user and validates it.
|
boolean |
blocksForInput(ConversationContext context)
Ensures that the prompt waits for the user to provide input.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPromptText
public Prompt acceptInput(ConversationContext context, String input)
acceptInput
in interface Prompt
context
- Context information about the conversation.input
- The input text from the user.public boolean blocksForInput(ConversationContext context)
blocksForInput
in interface Prompt
context
- Context information about the conversation.Copyright © 2022. All rights reserved.