Interface AsyncPromptFn
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Asynchronously handles a prompt request.
-
Method Summary
Modifier and TypeMethodDescriptionCompletionStage<? extends PromptResult> apply(InteractionContext context, PromptRequest request) Handles a prompt request asynchronously.
-
Method Details
-
apply
Handles a prompt request asynchronously.- Parameters:
context- the interaction contextrequest- the prompt request- Returns:
- a stage that completes with the prompt result
-