Must distinguish between file-search result and function-call result for assistant streaming without triggering NullReferenceException
Description
A file-search result provide any streaming result; rather, it results in an annotation on the assistant message. Still it must be distinguished from a function-call result.
Since RunStepDetailsUpdate.FunctionName property throws a NullReferenceException when being evaluated, using RunStepDetailsUpdate.FunctionResult property.
Motivation and Context
Fixes: https://github.com/microsoft/semantic-kernel/issues/9723
Must distinguish between file-search result and function-call result for assistant streaming without triggering
NullReferenceException
Description
A file-search result provide any streaming result; rather, it results in an annotation on the assistant message. Still it must be distinguished from a function-call result.
Since
RunStepDetailsUpdate.FunctionName
property throws aNullReferenceException
when being evaluated, usingRunStepDetailsUpdate.FunctionResult
property.Merged fix to Open AI SDK: https://github.com/openai/openai-dotnet/pull/293
Contribution Checklist