次の方法で共有


IPromptRenderFilter.OnPromptRenderAsync Method

Definition

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.

Returns

Applies to