Uses of Class
com.microsoft.semantickernel.semanticfunctions.KernelFunction
-
-
Uses of KernelFunction in com.microsoft.semantickernel
Methods in com.microsoft.semantickernel that return KernelFunction Modifier and Type Method Description <T> KernelFunction<T>Kernel. getFunction(String pluginName, String functionName)Gets the function with the specified name from the plugin with the specified name.Methods in com.microsoft.semantickernel that return types with arguments of type KernelFunction Modifier and Type Method Description List<KernelFunction<?>>Kernel. getFunctions()Gets the functions available through the kernel.Methods in com.microsoft.semantickernel with parameters of type KernelFunction Modifier and Type Method Description <T> FunctionResult<T>Kernel. invoke(KernelFunction<T> function)Invokes aKernelFunction.<T> FunctionInvocation<T>Kernel. invokeAsync(KernelFunction<T> function)Invokes aKernelFunction. -
Uses of KernelFunction in com.microsoft.semantickernel.hooks
Methods in com.microsoft.semantickernel.hooks that return KernelFunction Modifier and Type Method Description KernelFunction<T>FunctionInvokedEvent. getFunction()Gets the function that was invoked.KernelFunction<T>FunctionInvokingEvent. getFunction()Gets the function that is being invoked.KernelFunction<?>PreToolCallEvent. getFunction()KernelFunctionPromptRenderedEvent. getFunction()Gets the function that was invoked.KernelFunction<?>PromptRenderingEvent. getFunction()Gets the function that was invoked.Constructors in com.microsoft.semantickernel.hooks with parameters of type KernelFunction Constructor Description FunctionInvokedEvent(KernelFunction<T> function, KernelFunctionArguments arguments, FunctionResult<T> result)Creates a new instance of theFunctionInvokedEventclass.FunctionInvokingEvent(KernelFunction<T> function, KernelFunctionArguments arguments)Creates a new instance of the FunctionInvokingEvent class.PreToolCallEvent(String functionName, KernelFunctionArguments arguments, KernelFunction<?> function, ContextVariableTypes contextVariableTypes)Creates a new instance of thePreToolCallEventclass.PromptRenderedEvent(KernelFunction function, KernelFunctionArguments arguments, String prompt)Creates a new instance of thePromptRenderedEventclass.PromptRenderingEvent(KernelFunction<?> function, KernelFunctionArguments arguments)Creates a new instance of thePromptRenderingEventclass. -
Uses of KernelFunction in com.microsoft.semantickernel.orchestration
Methods in com.microsoft.semantickernel.orchestration that return KernelFunction Modifier and Type Method Description KernelFunction<?>ToolCallBehavior.RequiredKernelFunction. getRequiredFunction()Get the required function.Methods in com.microsoft.semantickernel.orchestration with parameters of type KernelFunction Modifier and Type Method Description static ToolCallBehaviorToolCallBehavior. allowOnlyKernelFunctions(boolean autoInvoke, KernelFunction<?>... functions)Allow a set of kernel functions.booleanToolCallBehavior.AllowedKernelFunctions. isFunctionAllowed(KernelFunction<?> function)Check whether the given function is allowed.static ToolCallBehaviorToolCallBehavior. requireKernelFunction(KernelFunction<?> function)Require a function.Method parameters in com.microsoft.semantickernel.orchestration with type arguments of type KernelFunction Modifier and Type Method Description static ToolCallBehaviorToolCallBehavior. allowOnlyKernelFunctions(boolean autoInvoke, List<KernelFunction<?>> functions)Allow a set of kernel functions.Constructors in com.microsoft.semantickernel.orchestration with parameters of type KernelFunction Constructor Description FunctionInvocation(Kernel kernel, KernelFunction<?> function, ContextVariableType<T> resultType)Create a new function invocation.FunctionInvocation(Kernel kernel, KernelFunction<T> function)Create a new function invocation.RequiredKernelFunction(KernelFunction<?> requiredFunction)Create a new instance of RequiredKernelFunction.Constructor parameters in com.microsoft.semantickernel.orchestration with type arguments of type KernelFunction Constructor Description AllowedKernelFunctions(boolean allKernelFunctionsAllowed, boolean autoInvoke, List<KernelFunction<?>> allowedFunctions)Create a new instance of AllowedKernelFunctions. -
Uses of KernelFunction in com.microsoft.semantickernel.plugin
Methods in com.microsoft.semantickernel.plugin that return KernelFunction Modifier and Type Method Description <T> KernelFunction<T>KernelPlugin. get(String functionName)Gets a function by name.Methods in com.microsoft.semantickernel.plugin that return types with arguments of type KernelFunction Modifier and Type Method Description Map<String,KernelFunction<?>>KernelPlugin. getFunctions()Gets the functions in the plugin.Iterator<KernelFunction<?>>KernelPlugin. iterator()Get anIteratorthat iterates over the functions of this plugin.Methods in com.microsoft.semantickernel.plugin with parameters of type KernelFunction Modifier and Type Method Description voidKernelPlugin. addFunction(KernelFunction<?> function)Adds a function to the plugin.Method parameters in com.microsoft.semantickernel.plugin with type arguments of type KernelFunction Modifier and Type Method Description static KernelPluginKernelPluginFactory. createFromFunctions(String pluginName, String description, List<KernelFunction<?>> functions)Initializes the new plugin from the provided name, description, and function collection.static KernelPluginKernelPluginFactory. createFromFunctions(String pluginName, List<KernelFunction<?>> functions)Creates a plugin from the provided name and function collection.Constructor parameters in com.microsoft.semantickernel.plugin with type arguments of type KernelFunction Constructor Description KernelPlugin(String name, String description, Map<String,KernelFunction<?>> plugins)Creates a new instance of theKernelPluginclass. -
Uses of KernelFunction in com.microsoft.semantickernel.semanticfunctions
Subclasses of KernelFunction in com.microsoft.semantickernel.semanticfunctions Modifier and Type Class Description classKernelFunctionFromMethod<T>AKernelFunctionthat is created from a method.classKernelFunctionFromPrompt<T>AKernelFunctionimplementation that is created from a prompt template.Methods in com.microsoft.semantickernel.semanticfunctions that return KernelFunction Modifier and Type Method Description KernelFunction<T>KernelFunction.FromPromptBuilder. build()Create a new KernelFunction instance from the builder.KernelFunction<T>KernelFunctionFromMethod.Builder. build()Builds a new instance ofKernelFunction.KernelFunction<T>KernelFunctionFromPrompt.Builder. build()static <T> KernelFunction<T>KernelFunctionFromMethod. create(Method method, Object target, String pluginName, String functionName, String description, List<InputVariable> parameters, OutputVariable<?> returnParameter)Creates a new instance ofKernelFunctionFromMethodfrom a method.static <T> KernelFunction<T>KernelFunctionYaml. fromPromptYaml(String yaml)Create a KernelFunction instance for a prompt function using the specified markdown text.static <T> KernelFunction<T>KernelFunctionYaml. fromPromptYaml(String yaml, PromptTemplateFactory promptTemplateFactory)Create a KernelFunction instance for a prompt function using the specified markdown text.static <T> KernelFunction<T>KernelFunctionYaml. fromYaml(Path filePath)Create a KernelFunction instance for a prompt function using the specified markdown text.Methods in com.microsoft.semantickernel.semanticfunctions with parameters of type KernelFunction Modifier and Type Method Description default FunctionResult<T>KernelFunctionFromMethod.ImplementationFunc. invoke(Kernel kernel, KernelFunction<T> function, KernelFunctionArguments arguments, ContextVariableType<T> variableType, InvocationContext invocationContext)Invokes the function.reactor.core.publisher.Mono<FunctionResult<T>>KernelFunctionFromMethod.ImplementationFunc. invokeAsync(Kernel kernel, KernelFunction<T> function, KernelFunctionArguments arguments, ContextVariableType<T> variableType, InvocationContext invocationContext)Invokes the function. -
Uses of KernelFunction in com.microsoft.semantickernel.services
Methods in com.microsoft.semantickernel.services with parameters of type KernelFunction Modifier and Type Method Description <T extends AIService>
AIServiceSelection<T>AIServiceSelector. trySelectAIService(Class<T> serviceType, KernelFunction<?> function, KernelFunctionArguments arguments)Resolves anAIServiceand associated andPromptExecutionSettingsbased on the associatedKernelFunctionandKernelFunctionArguments.<T extends AIService>
AIServiceSelection<T>BaseAIServiceSelector. trySelectAIService(Class<T> serviceType, KernelFunction<?> function, KernelFunctionArguments arguments)<T extends AIService>
AIServiceSelection<T>OrderedAIServiceSelector. trySelectAIService(Class<T> serviceType, KernelFunction<?> function, KernelFunctionArguments arguments, Map<Class<? extends AIService>,AIService> services)
-