ToolCallBehavior.AllowedKernelFunctions Class
- java.
lang. Object - com.
microsoft. semantickernel. orchestration. ToolCallBehavior - com.
microsoft. semantickernel. orchestration. ToolCallBehavior. AllowedKernelFunctions
- com.
- com.
public static class ToolCallBehavior.AllowedKernelFunctions
extends ToolCallBehavior
A set of allowed kernel functions. All kernel functions are allowed if allKernelFunctionsAllowed is true. Otherwise, only the functions in allowedFunctions are allowed.
If a function is allowed, it may be called. If it is not allowed, it will not be called.
Constructor Summary
| Constructor | Description |
|---|---|
| AllowedKernelFunctions(boolean allKernelFunctionsAllowed, boolean autoInvoke, List<KernelFunction<?>> allowedFunctions) |
Create a new instance of Allowed |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| boolean |
isAllKernelFunctionsAllowed()
Check whether all kernel functions are allowed. |
| boolean |
isFunctionAllowed(KernelFunction<?> function)
Check whether the given function is allowed. |
| boolean |
isFunctionAllowed(String pluginName, String functionName)
Check whether the given function is allowed. |
Methods inherited from ToolCallBehavior
Methods inherited from java.lang.Object
Constructor Details
AllowedKernelFunctions
public AllowedKernelFunctions(boolean allKernelFunctionsAllowed, boolean autoInvoke, List
Create a new instance of AllowedKernelFunctions.
Parameters:
Method Details
isAllKernelFunctionsAllowed
public boolean isAllKernelFunctionsAllowed()
Check whether all kernel functions are allowed.
Returns:
isFunctionAllowed
public boolean isFunctionAllowed(KernelFunction function)
Check whether the given function is allowed.
Parameters:
Returns:
isFunctionAllowed
public boolean isFunctionAllowed(String pluginName, String functionName)
Check whether the given function is allowed.
Parameters:
Returns: