This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
What is the purpose of a native function in the Semantic Kernel SDK?
To customize prompts and generated responses.
To run native code in the application.
To summarize conversations and chat history
How is a native function declared using the Semantic Kernel SDK?
By using public static void NativeFunction() {}
public static void NativeFunction() {}
Using kernel.InvokeAsync("PluginName", "NativeFunctionName");
kernel.InvokeAsync("PluginName", "NativeFunctionName");
By using [KernelFunction, Description("Function description")]
[KernelFunction, Description("Function description")]
Which of the following is true about native functions?
Native functions can only be used in prompts.
Native functions can be used in prompts, invoked directly, or called by other functions.
Native functions can't be used in prompts.
You must answer all questions before checking your work.
Continue
Was this page helpful?