Partager via


PromptRenderingEventArgs Class

Definition

Caution

Events are deprecated in favor of filters. Example in dotnet/samples/GettingStarted/Step7_Observability.cs of Semantic Kernel repository.

Provides a KernelEventArgs used in events raised just before a prompt is rendered.

[System.Obsolete("Events are deprecated in favor of filters. Example in dotnet/samples/GettingStarted/Step7_Observability.cs of Semantic Kernel repository.")]
public sealed class PromptRenderingEventArgs : Microsoft.SemanticKernel.KernelEventArgs
[<System.Obsolete("Events are deprecated in favor of filters. Example in dotnet/samples/GettingStarted/Step7_Observability.cs of Semantic Kernel repository.")>]
type PromptRenderingEventArgs = class
    inherit KernelEventArgs
Public NotInheritable Class PromptRenderingEventArgs
Inherits KernelEventArgs
Inheritance
PromptRenderingEventArgs
Attributes

Constructors

PromptRenderingEventArgs(KernelFunction, KernelArguments)

Initializes a new instance of the PromptRenderingEventArgs class.

Properties

Arguments

Gets the arguments associated with the operation.

(Inherited from KernelEventArgs)
Function

Gets the KernelFunction with which this event is associated.

(Inherited from KernelEventArgs)
Metadata

Gets a dictionary of metadata related to the event.

(Inherited from KernelEventArgs)

Applies to