Interface KernelFunctionFromMethod.ImplementationFunc<T>
-
- Enclosing class:
- KernelFunctionFromMethod<T>
public static interface KernelFunctionFromMethod.ImplementationFunc<T>Concrete implementation of the abstract method in KernelFunction.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default FunctionResult<T>invoke(Kernel kernel, KernelFunction<T> function, KernelFunctionArguments arguments, ContextVariableType<T> variableType, InvocationContext invocationContext)Invokes the function.reactor.core.publisher.Mono<FunctionResult<T>>invokeAsync(Kernel kernel, KernelFunction<T> function, KernelFunctionArguments arguments, ContextVariableType<T> variableType, InvocationContext invocationContext)Invokes the function.
-
-
-
Method Detail
-
invokeAsync
reactor.core.publisher.Mono<FunctionResult<T>> invokeAsync(Kernel kernel, KernelFunction<T> function, @Nullable KernelFunctionArguments arguments, @Nullable ContextVariableType<T> variableType, @Nullable InvocationContext invocationContext)
Invokes the function.- Parameters:
kernel- the kernel to invoke the function onfunction- the function to invokearguments- the arguments to the functionvariableType- the variable type of the functioninvocationContext- the invocation context- Returns:
- a
Monothat emits the result of the function invocation
-
invoke
default FunctionResult<T> invoke(Kernel kernel, KernelFunction<T> function, @Nullable KernelFunctionArguments arguments, @Nullable ContextVariableType<T> variableType, @Nullable InvocationContext invocationContext)
Invokes the function.- Parameters:
kernel- the kernel to invoke the function onfunction- the function to invokearguments- the arguments to the functionvariableType- the variable type of the functioninvocationContext- the invocation context- Returns:
- a
Monothat emits the result of the function invocation
-
-