com.microsoft.semantickernel.hooks

Classes

FunctionInvokedEvent<T>

Represents a KernelHookEvent that is raised after a function is invoked.

FunctionInvokingEvent<T>

Represents a KernelHookEvent that is raised before a function is invoked.

KernelHooks

Represents a collection of hooks that can be used to intercept and modify events in the kernel.

KernelHooks.UnmodifiableKernelHooks

A wrapper for KernelHooks that disables mutating methods.

PostChatCompletionEvent

Represents a KernelHookEvent that is raised after a chat completion is invoked.

PreChatCompletionEvent

Represents a KernelHookEvent that is raised before a chat completion is invoked.

PreToolCallEvent

Represents a KernelHookEvent that is raised before a tool call is invoked.

PromptRenderedEvent

Represents a KernelHookEvent that is raised after a prompt is rendered.

PromptRenderingEvent

Represents a KernelHookEvent that is raised after a prompt is rendered.

Interfaces

KernelHook<T>

Represents a hook that can be used to intercept and modify arguments to KernelFunctions.

KernelHook.FunctionInvokedHook

A hook that accepts FunctionInvokedEvent<T>

KernelHook.FunctionInvokingHook

A hook that accepts FunctionInvokingEvent<T>

KernelHook.PostChatCompletionHook

A hook that accepts PostChatCompletionEvent

KernelHook.PreChatCompletionHook

A hook that accepts PreChatCompletionEvent

KernelHook.PreToolCallHook

A hook that accepts PreToolCallEvent

KernelHook.PromptRenderedHook

A hook that accepts PromptRenderedEvent

KernelHook.PromptRenderingHook

A hook that accepts PromptRenderingEvent

KernelHookEvent

A marker interface for events that can be intercepted by a KernelHook<T>.