Kernel.PromptRendering Event
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.
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 prior to a prompt being 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.PromptRenderingEventArgs>? PromptRendering;
[<System.Obsolete("Events are deprecated in favor of filters. Example in dotnet/samples/GettingStarted/Step7_Observability.cs of Semantic Kernel repository.")>]
member this.PromptRendering : EventHandler<Microsoft.SemanticKernel.PromptRenderingEventArgs>
Public Event PromptRendering As EventHandler(Of PromptRenderingEventArgs)
Event Type
- Attributes