Describe the bug
When streaming the chat response and checking if the OpenAI model returned a function call accessing SKChatMessage.FunctionCall throws NotSupportedException.
Exception has occurred: CLR/System.NotSupportedException
Exception thrown: 'System.NotSupportedException' in System.Private.CoreLib.dll: 'Function call is not supported'
at Microsoft.SemanticKernel.Connectors.AI.OpenAI.AzureSdk.SKChatMessage.get_FunctionCall()
at Microsoft.SemanticKernel.Connectors.AI.OpenAI.AzureSdk.ChatStreamingResultExtensions.<GetOpenAIStreamingFunctionResponseAsync>d__0.MoveNext()
at Microsoft.SemanticKernel.Connectors.AI.OpenAI.AzureSdk.ChatStreamingResultExtensions.<GetOpenAIStreamingFunctionResponseAsync>d__0.MoveNext()
...
Describe the bug When streaming the chat response and checking if the OpenAI model returned a function call accessing
SKChatMessage.FunctionCall
throwsNotSupportedException
.Reference: https://github.com/microsoft/semantic-kernel/pull/3246
To Reproduce Code similar to Example59_OpenAIFunctionCalling.cs
Expected behavior
SKChatMessage.FunctionCall
should returnnull
instead.Platform