IFunctionInvocationFilter is invoked for a KernelFunctionFromPrompt; however, the filter cannot know whether the prompt-function was invoked usign streaming or not. This limits the ability to provide a compatible response, as any KernelFunctionFromPrompt may be invoked in both modalities.
Use Case
Invalid input is detected which results in the desire to block the function execution.
Description
IFunctionInvocationFilter
is invoked for aKernelFunctionFromPrompt
; however, the filter cannot know whether the prompt-function was invoked usign streaming or not. This limits the ability to provide a compatible response, as anyKernelFunctionFromPrompt
may be invoked in both modalities.Use Case
Invalid input is detected which results in the desire to block the function execution.
Repro
Run this code from
Concepts
project:Expected
The
IFunctionInvocationFilter
implementation should be provided with sufficient context in order to generate a compatible result.Platform