IPromptRenderFilter.OnPromptRenderAsync 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.
Method which is called asynchronously before prompt rendering.
public System.Threading.Tasks.Task OnPromptRenderAsync (Microsoft.SemanticKernel.PromptRenderContext context, Func<Microsoft.SemanticKernel.PromptRenderContext,System.Threading.Tasks.Task> next);
abstract member OnPromptRenderAsync : Microsoft.SemanticKernel.PromptRenderContext * Func<Microsoft.SemanticKernel.PromptRenderContext, System.Threading.Tasks.Task> -> System.Threading.Tasks.Task
Public Function OnPromptRenderAsync (context As PromptRenderContext, next As Func(Of PromptRenderContext, Task)) As Task
Parameters
- context
- PromptRenderContext
Instance of PromptRenderContext with prompt rendering details.
- next
- Func<PromptRenderContext,Task>
Delegate to the next filter in pipeline or prompt rendering operation itself. If it's not invoked, next filter or prompt rendering won't be invoked.