Class FunctionInvokingEvent<T>
- java.lang.Object
-
- com.microsoft.semantickernel.hooks.FunctionInvokingEvent<T>
-
- Type Parameters:
T- The type of the KernelFunction being invoked
- All Implemented Interfaces:
KernelHookEvent
public class FunctionInvokingEvent<T> extends Object 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 aKernelHookto modify the arguments before the function is invoked.
-
-
Constructor Summary
Constructors Constructor Description FunctionInvokingEvent(KernelFunction<T> function, KernelFunctionArguments arguments)Creates a new instance of the FunctionInvokingEvent class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KernelFunctionArgumentsgetArguments()Gets the arguments that are being passed to the function.KernelFunction<T>getFunction()Gets the function that is being invoked.
-
-
-
Constructor Detail
-
FunctionInvokingEvent
public FunctionInvokingEvent(KernelFunction<T> function, @Nullable KernelFunctionArguments arguments)
Creates a new instance of the FunctionInvokingEvent class.- Parameters:
function- The function that is being invokedarguments- The arguments that are being passed to the function
-
-
Method Detail
-
getFunction
public KernelFunction<T> getFunction()
Gets the function that is being invoked.- Returns:
- the function
-
getArguments
public KernelFunctionArguments getArguments()
Gets the arguments that are being passed to the function.- Returns:
- the arguments
-
-