Interface UserPromptTransformedHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Handler for user-prompt-transformed hooks.
- Since:
- 1.0.11
-
Method Summary
Modifier and TypeMethodDescriptionhandle(UserPromptTransformedHookInput input, HookInvocation invocation) Handles a transformed user prompt before it is stored or sent to the model.
-
Method Details
-
handle
CompletableFuture<UserPromptTransformedHookOutput> handle(UserPromptTransformedHookInput input, HookInvocation invocation) Handles a transformed user prompt before it is stored or sent to the model.- Parameters:
input- the hook inputinvocation- metadata about the hook invocation- Returns:
- a future resolving to the hook output, or
null
-