Share via


KernelFunctionFromMethod.ImplementationFunc<T> Interface

Type Parameters

T

the return type of the function

public static interface KernelFunctionFromMethod.ImplementationFunc<T>

Concrete implementation of the abstract method in KernelFunction.

Method Details

invoke

public default FunctionResult invoke(Kernel kernel, KernelFunction function, KernelFunctionArguments arguments, ContextVariableType variableType, InvocationContext invocationContext)

Invokes the function.

Parameters:

kernel - the kernel to invoke the function on
function - the function to invoke
arguments - the arguments to the function
variableType - the variable type of the function
invocationContext - the invocation context

Returns:

a Mono that emits the result of the function invocation

invokeAsync

public abstract Mono> invokeAsync(Kernel kernel, KernelFunction function, KernelFunctionArguments arguments, ContextVariableType variableType, InvocationContext invocationContext)

Invokes the function.

Parameters:

kernel - the kernel to invoke the function on
function - the function to invoke
arguments - the arguments to the function
variableType - the variable type of the function
invocationContext - the invocation context

Returns:

a Mono that emits the result of the function invocation

Applies to