FunctionInvokedEvent<T> Class
- java.
lang. Object - com.
microsoft. semantickernel. hooks. FunctionInvokedEvent<T>
- com.
Type Parameters
- T
The type of the function result
Implements
public class FunctionInvokedEvent<T>
implements KernelHookEvent
Represents a KernelHookEvent that is raised after a function is invoked.
Constructor Summary
| Constructor | Description |
|---|---|
| FunctionInvokedEvent(KernelFunction<T> function, KernelFunctionArguments arguments, FunctionResult<T> result) |
Creates a new instance of the FunctionInvokedEvent<T> class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Kernel |
getArguments()
Gets the arguments that were passed to the function. |
|
Kernel |
getFunction()
Gets the function that was invoked. |
|
Function |
getResult()
Gets the result of the function invocation. |
Methods inherited from java.lang.Object
Constructor Details
FunctionInvokedEvent
public FunctionInvokedEvent(KernelFunction
Creates a new instance of the FunctionInvokedEvent<T> class.
Parameters:
Method Details
getArguments
public KernelFunctionArguments getArguments()
Gets the arguments that were passed to the function.
Returns:
getFunction
public KernelFunction
Gets the function that was invoked.
Returns:
getResult
public FunctionResult
Gets the result of the function invocation.
Returns: