KernelHooks.UnmodifiableKernelHooks Class
- java.
lang. Object - com.
microsoft. semantickernel. hooks. KernelHooks - com.
microsoft. semantickernel. hooks. KernelHooks. UnmodifiableKernelHooks
- com.
- com.
public static class KernelHooks.UnmodifiableKernelHooks
extends KernelHooks
A wrapper for KernelHooks that disables mutating methods.
Method Summary
Methods inherited from KernelHooks
Methods inherited from java.lang.Object
Method Details
addFunctionInvokedHook
public String addFunctionInvokedHook(Function
Add a FunctionInvokedHook to the collection of hooks.
Overrides:
KernelHooks.UnmodifiableKernelHooks.addFunctionInvokedHook(Function<FunctionInvokedEvent<?>,FunctionInvokedEvent<?>> function)Parameters:
addFunctionInvokingHook
public String addFunctionInvokingHook(Function
Add a FunctionInvokingHook to the collection of hooks.
Overrides:
KernelHooks.UnmodifiableKernelHooks.addFunctionInvokingHook(Function<FunctionInvokingEvent<?>,FunctionInvokingEvent<?>> function)Parameters:
addHook
public String addHook(KernelHook hook)
Add a KernelHook<T> to the collection of hooks.
Overrides:
KernelHooks.UnmodifiableKernelHooks.addHook(KernelHook<?> hook)Parameters:
addHook
public String addHook(String hookName, KernelHook hook)
Add a KernelHook<T> to the collection of hooks.
Overrides:
KernelHooks.UnmodifiableKernelHooks.addHook(String hookName, KernelHook<?> hook)Parameters:
addHooks
public KernelHooks addHooks(KernelHooks kernelHooks)
Appends the given hooks to this collection.
Overrides:
KernelHooks.UnmodifiableKernelHooks.addHooks(KernelHooks kernelHooks)Parameters:
addPostChatCompletionHook
public String addPostChatCompletionHook(Function
Add a PostChatCompletionEvent to the collection of hooks.
Overrides:
KernelHooks.UnmodifiableKernelHooks.addPostChatCompletionHook(Function<PostChatCompletionEvent,PostChatCompletionEvent> function)Parameters:
addPreChatCompletionHook
public String addPreChatCompletionHook(Function
Add a PreChatCompletionHook to the collection of hooks.
Overrides:
KernelHooks.UnmodifiableKernelHooks.addPreChatCompletionHook(Function<PreChatCompletionEvent,PreChatCompletionEvent> function)Parameters:
addPromptRenderedHook
public String addPromptRenderedHook(Function
Add a PromptRenderedHook to the collection of hooks.
Overrides:
KernelHooks.UnmodifiableKernelHooks.addPromptRenderedHook(Function<PromptRenderedEvent,PromptRenderedEvent> function)Parameters:
addPromptRenderingHook
public String addPromptRenderingHook(Function
Add a PromptRenderingHook to the collection of hooks.
Overrides:
KernelHooks.UnmodifiableKernelHooks.addPromptRenderingHook(Function<PromptRenderingEvent,PromptRenderingEvent> function)Parameters:
removeHook
public KernelHook removeHook(String hookName)
Remove a hook from the collection of hooks.
Overrides:
KernelHooks.UnmodifiableKernelHooks.removeHook(String hookName)Parameters: