[Microsoft.Extensions.AI.OpenAI] Add logging support to HandleToolCallsAsync #5715
Open
Description
When using OpenAIRealtimeExtensions.HandleToolCallsAsync
there is no way to capture the error information from failed tool calls. The errors are reported to the model but then swallowed without any additional logging:
The equivalent logging code for the non realtime case is in place:
extensions/src/Libraries/Microsoft.Extensions.AI/ChatCompletion/FunctionInvokingChatClient.cs at 5161cb90e1db3c3b6192ce40a3406dabc53db35a · dotnet/extensions.