KernelPlugin.AsAIFunctions(Kernel) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Produces an AIFunction for every KernelFunction in this plugin.
public System.Collections.Generic.IEnumerable<Microsoft.Extensions.AI.AIFunction> AsAIFunctions(Microsoft.SemanticKernel.Kernel? kernel = default);
member this.AsAIFunctions : Microsoft.SemanticKernel.Kernel -> seq<Microsoft.Extensions.AI.AIFunction>
Public Iterator Function AsAIFunctions (Optional kernel As Kernel = Nothing) As IEnumerable(Of AIFunction)
Parameters
- kernel
- Kernel
The Kernel instance to pass to the KernelFunctions when invoked as part of the AIFunction's invocation.
Returns
An enumerable of AIFunction instances, one for each KernelFunction in this plugin.