CopilotAgentPluginKernelExtensions.CreatePluginFromCopilotAgentPluginAsync 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.
Creates a kernel plugin from an Copilot Agent Plugin file asynchronously.
public static System.Threading.Tasks.Task<Microsoft.SemanticKernel.KernelPlugin> CreatePluginFromCopilotAgentPluginAsync(this Microsoft.SemanticKernel.Kernel kernel, string pluginName, string filePath, Microsoft.SemanticKernel.Plugins.OpenApi.Extensions.CopilotAgentPluginParameters? pluginParameters = default, System.Threading.CancellationToken cancellationToken = default);
static member CreatePluginFromCopilotAgentPluginAsync : Microsoft.SemanticKernel.Kernel * string * string * Microsoft.SemanticKernel.Plugins.OpenApi.Extensions.CopilotAgentPluginParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.SemanticKernel.KernelPlugin>
<Extension()>
Public Function CreatePluginFromCopilotAgentPluginAsync (kernel As Kernel, pluginName As String, filePath As String, Optional pluginParameters As CopilotAgentPluginParameters = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of KernelPlugin)
Parameters
- kernel
- Kernel
The kernel instance.
- pluginName
- String
The name of the plugin.
- filePath
- String
The file path of the Copilot Agent Plugin.
- pluginParameters
- CopilotAgentPluginParameters
Optional parameters for the plugin setup.
- cancellationToken
- CancellationToken
Optional cancellation token.
Returns
A task that represents the asynchronous operation. The task result contains the created kernel plugin.