Class FunctionInvokedEvent<T>
- java.lang.Object
-
- com.microsoft.semantickernel.hooks.FunctionInvokedEvent<T>
-
- Type Parameters:
T- The type of the function result
- All Implemented Interfaces:
KernelHookEvent
public class FunctionInvokedEvent<T> extends Object implements KernelHookEvent
Represents a KernelHookEvent that is raised after a function is invoked.
-
-
Constructor Summary
Constructors Constructor Description FunctionInvokedEvent(KernelFunction<T> function, KernelFunctionArguments arguments, FunctionResult<T> result)Creates a new instance of theFunctionInvokedEventclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KernelFunctionArgumentsgetArguments()Gets the arguments that were passed to the function.KernelFunction<T>getFunction()Gets the function that was invoked.FunctionResult<T>getResult()Gets the result of the function invocation.
-
-
-
Constructor Detail
-
FunctionInvokedEvent
public FunctionInvokedEvent(KernelFunction<T> function, @Nullable KernelFunctionArguments arguments, FunctionResult<T> result)
Creates a new instance of theFunctionInvokedEventclass.- Parameters:
function- the functionarguments- the argumentsresult- the result
-
-
Method Detail
-
getFunction
public KernelFunction<T> getFunction()
Gets the function that was invoked.- Returns:
- the function
-
getArguments
@Nullable public KernelFunctionArguments getArguments()
Gets the arguments that were passed to the function.- Returns:
- the arguments
-
getResult
public FunctionResult<T> getResult()
Gets the result of the function invocation.- Returns:
- the result
-
-