FunctionInvokingEvent<T> Class

  • java.lang.Object
    • com.microsoft.semantickernel.hooks.FunctionInvokingEvent<T>

Type Parameters

T

The type of the KernelFunction being invoked

Implements

public class FunctionInvokingEvent<T>
implements KernelHookEvent

Represents a KernelHookEvent that is raised before a function is invoked. This event is raised before the function is invoked, and can be used to by a KernelHook to modify the arguments before the function is invoked.

Constructor Summary

Constructor Description
FunctionInvokingEvent(KernelFunction<T> function, KernelFunctionArguments arguments)

Creates a new instance of the FunctionInvokingEvent class.

Method Summary

Modifier and Type Method and Description
KernelFunctionArguments getArguments()

Gets the arguments that are being passed to the function.

KernelFunction<T> getFunction()

Gets the function that is being invoked.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

FunctionInvokingEvent

public FunctionInvokingEvent(KernelFunction function, KernelFunctionArguments arguments)

Creates a new instance of the FunctionInvokingEvent class.

Parameters:

function - The function that is being invoked
arguments - The arguments that are being passed to the function

Method Details

getArguments

public KernelFunctionArguments getArguments()

Gets the arguments that are being passed to the function.

Returns:

the arguments

getFunction

public KernelFunction getFunction()

Gets the function that is being invoked.

Returns:

the function

Applies to