Partager via


HandlebarsPlan.InvokeAsync(Kernel, KernelArguments, CancellationToken) Method

Definition

Invokes the Handlebars plan.

public System.Threading.Tasks.Task<string> InvokeAsync (Microsoft.SemanticKernel.Kernel kernel, Microsoft.SemanticKernel.KernelArguments? arguments = default, System.Threading.CancellationToken cancellationToken = default);
member this.InvokeAsync : Microsoft.SemanticKernel.Kernel * Microsoft.SemanticKernel.KernelArguments * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function InvokeAsync (kernel As Kernel, Optional arguments As KernelArguments = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)

Parameters

kernel
Kernel

The Kernel containing services, plugins, and other state for use throughout the operation.

arguments
KernelArguments

The arguments.

cancellationToken
CancellationToken

The cancellation token.

Returns

The plan result.

Applies to