Partager via


Kernel.PromptRendered Event

Definition

Caution

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

Provides an event that's raised after 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 event EventHandler<Microsoft.SemanticKernel.PromptRenderedEventArgs>? PromptRendered;
[<System.Obsolete("Events are deprecated in favor of filters. Example in dotnet/samples/GettingStarted/Step7_Observability.cs of Semantic Kernel repository.")>]
member this.PromptRendered : EventHandler<Microsoft.SemanticKernel.PromptRenderedEventArgs> 
Public Event PromptRendered As EventHandler(Of PromptRenderedEventArgs) 

Event Type

Attributes

Applies to