Class ToolCallBehavior.RequiredKernelFunction
- java.lang.Object
-
- com.microsoft.semantickernel.orchestration.ToolCallBehavior
-
- com.microsoft.semantickernel.orchestration.ToolCallBehavior.RequiredKernelFunction
-
- Enclosing class:
- ToolCallBehavior
public static class ToolCallBehavior.RequiredKernelFunction extends ToolCallBehavior
A required kernel function. The required function will be the only function passed to the model and forces the model to call the function. Only one function can be required.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.microsoft.semantickernel.orchestration.ToolCallBehavior
ToolCallBehavior.AllowedKernelFunctions, ToolCallBehavior.RequiredKernelFunction
-
-
Constructor Summary
Constructors Constructor Description RequiredKernelFunction(KernelFunction<?> requiredFunction)Create a new instance of RequiredKernelFunction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KernelFunction<?>getRequiredFunction()Get the required function.-
Methods inherited from class com.microsoft.semantickernel.orchestration.ToolCallBehavior
allowAllKernelFunctions, allowOnlyKernelFunctions, allowOnlyKernelFunctions, formFullFunctionName, getMaximumAutoInvokeAttempts, isAutoInvokeAllowed, requireKernelFunction
-
-
-
-
Constructor Detail
-
RequiredKernelFunction
public RequiredKernelFunction(KernelFunction<?> requiredFunction)
Create a new instance of RequiredKernelFunction.- Parameters:
requiredFunction- The function that is required.
-
-
Method Detail
-
getRequiredFunction
public KernelFunction<?> getRequiredFunction()
Get the required function.- Returns:
- the required function.
-
-