Share via


PromptRenderContext Class

Definition

Class with data related to prompt rendering.

public sealed class PromptRenderContext
type PromptRenderContext = class
Public NotInheritable Class PromptRenderContext
Inheritance
PromptRenderContext

Properties

Arguments

Gets the arguments associated with the operation.

CancellationToken

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

Function

Gets the KernelFunction with which this filter is associated.

Kernel

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

RenderedPrompt

Gets or sets the rendered prompt.

Result

Gets or sets the result of the function's invocation. Setting Result to a non-null value will skip function invocation and return the result.

Applies to