KernelFunctionFromMethod.Builder<T> Class    
	- java.lang. Object 
- com.microsoft. semantickernel. semanticfunctions. KernelFunctionFromMethod. Builder<T> 
 
- com.
Type Parameters
- T
- the return type of the function 
public static class KernelFunctionFromMethod.Builder<T>
A builder for KernelFunction<T>.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| Builder() | ||
Method Summary
| Modifier and Type | Method and Description | 
|---|---|
| Kernel | build() Builds a new instance of KernelFunction<T>. | 
| Builder<T> | withDescription(String description) Sets the description to use to build the function. | 
| Builder<T> | withFunctionName(String functionName) Sets the function name to use to build the function. | 
| Builder<T> | withMethod(Method method) Sets the method to use to build the function. | 
| Builder<T> | withParameters(List<InputVariable> parameters) Sets the parameters to use to build the function. | 
| Builder<T> | withPluginName(String pluginName) Sets the plugin name to use to build the function. | 
| Builder<T> | withReturnParameter(OutputVariable<?> returnParameter) Sets the return parameter to use to build the function. | 
| Builder<T> | withTarget(Object target) Sets the target to use to build the function. | 
Methods inherited from java.lang.Object
Constructor Details
Builder
public Builder()
Method Details
build
public KernelFunction
Builds a new instance of KernelFunction<T>.
Returns:
withDescription
public KernelFunctionFromMethod.Builder
Sets the description to use to build the function.
Parameters:
Returns:
withFunctionName
public KernelFunctionFromMethod.Builder
Sets the function name to use to build the function.
Parameters:
Returns:
withMethod
public KernelFunctionFromMethod.Builder
Sets the method to use to build the function.
Parameters:
Returns:
withParameters
public KernelFunctionFromMethod.Builder
Sets the parameters to use to build the function.
Parameters:
Returns:
withPluginName
public KernelFunctionFromMethod.Builder
Sets the plugin name to use to build the function.
Parameters:
Returns:
withReturnParameter
public KernelFunctionFromMethod.Builder
Sets the return parameter to use to build the function.
Parameters:
Returns:
withTarget
public KernelFunctionFromMethod.Builder
Sets the target to use to build the function.
Parameters:
Returns: