KernelHook.PreChatCompletionHook Interface
Implements
public static interface KernelHook.PreChatCompletionHook
extends KernelHook<PreChatCompletionEvent>
A hook that accepts PreChatCompletionEvent
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Chat |
cloneOptionsWithMessages(ChatCompletionsOptions options, List<ChatRequestMessage> messages)
A convenience method to clone the options with the messages from the event. |
| default boolean | test(KernelHookEvent arguments) |
Method Details
cloneOptionsWithMessages
public static ChatCompletionsOptions cloneOptionsWithMessages(ChatCompletionsOptions options, List
A convenience method to clone the options with the messages from the event.
Parameters:
Returns:
test
public default boolean test(KernelHookEvent arguments)
Parameters: