Share via


Agent.RenderInstructionsAsync Method

Definition

Formats the system instructions for the agent.

protected System.Threading.Tasks.Task<string?> RenderInstructionsAsync(Microsoft.SemanticKernel.Kernel kernel, Microsoft.SemanticKernel.KernelArguments? arguments, System.Threading.CancellationToken cancellationToken);
member this.RenderInstructionsAsync : Microsoft.SemanticKernel.Kernel * Microsoft.SemanticKernel.KernelArguments * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Protected Function RenderInstructionsAsync (kernel As Kernel, arguments As KernelArguments, cancellationToken As CancellationToken) As Task(Of String)

Parameters

kernel
Kernel

The Kernel containing services, plugins, and other state for use by the agent.

arguments
KernelArguments

Optional arguments to pass to the agents's invocation, including any PromptExecutionSettings.

cancellationToken
CancellationToken

The CancellationToken to monitor for cancellation requests. The default is None.

Returns

The formatted system instructions for the agent.

Applies to