Interface PromptFn
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Synchronously handles a prompt request.
-
Method Summary
Modifier and TypeMethodDescriptionapply(InteractionContext context, PromptRequest request) Handles a prompt request.
-
Method Details
-
apply
Handles a prompt request.- Parameters:
context- the interaction contextrequest- the prompt request- Returns:
- the prompt result
- Throws:
Exception- if handling fails
-