Agent.RenderInstructionsAsync 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.
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
- 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.