Auto function invocation filter does not show information about all functions which will be invoked(list is empty) #6638
-
Hi We are using SK - 1.13. We follow the following process. register 4 native plugins using kernel.ImportPluginFromObject RegisterNativePlugins(); FunctionInvocationFilters.Add(new FunctionFilter()); ToolCallBehavior = ToolCallBehavior.AutoInvokeKernelFunctions chat history has system prompt and user prompt GetStreamingChatMessageContentsAsync is being used in FunctionFilter OnFunctionInvoking(context); in OnAutoFunctionInvocationAsync in AutoFunctionInvocationFilter the chat history has system prompt and user prompt var functionCalls = FunctionCallContent.GetFunctionCalls(context.ChatHistory.Last()); the function calls list from the above call is empty and no way to determine the information on all the function calls which will be invoked and hence cannot use context.Terminate = true since the is list of function calls is empty If I set the context.Terminate = true the last function(of the 2 plugins) will "not" be invoked. If I set context.Terminate = false both functions are invoked but dont know when to set context.Terminate = true since we need to set the context.Terminate = true based on certain condition. Hence we need the information on all the function calls which will be invoked. Please help Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
We've created an issue from this discussion question. |
Beta Was this translation helpful? Give feedback.
-
Hi @EVENFLOW212 ! In my example, I used Here is a list of supported models for function calling: |
Beta Was this translation helpful? Give feedback.
We've created an issue from this discussion question.