Share via


ApiManifestKernelExtensions.CreatePluginFromApiManifestAsync Method

Definition

Creates a kernel plugin from an API manifest file asynchronously.

public static System.Threading.Tasks.Task<Microsoft.SemanticKernel.KernelPlugin> CreatePluginFromApiManifestAsync (this Microsoft.SemanticKernel.Kernel kernel, string pluginName, string filePath, Microsoft.SemanticKernel.Plugins.OpenApi.Extensions.ApiManifestPluginParameters? pluginParameters = default, System.Threading.CancellationToken cancellationToken = default);

Parameters

kernel
Kernel

The kernel instance.

pluginName
String

The name of the plugin.

filePath
String

The file path of the API manifest.

pluginParameters
ApiManifestPluginParameters

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.

Applies to