FunctionInvokingEvent<T> Class
- java.
lang. Object - com.
microsoft. semantickernel. hooks. FunctionInvokingEvent<T>
- com.
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 Function |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Kernel |
getArguments()
Gets the arguments that are being passed to the function. |
|
Kernel |
getFunction()
Gets the function that is being invoked. |
Methods inherited from java.lang.Object
Constructor Details
FunctionInvokingEvent
public FunctionInvokingEvent(KernelFunction
Creates a new instance of the FunctionInvokingEvent class.
Parameters:
Method Details
getArguments
public KernelFunctionArguments getArguments()
Gets the arguments that are being passed to the function.
Returns:
getFunction
public KernelFunction
Gets the function that is being invoked.
Returns: