You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
@paulbatum and I discussed this earlier. I agree with the proposal. The realtime function invoker should be given similar logging semantics to FunctionInvokingChatClient where possible.
The realtime function invoker should be given similar logging semantics to FunctionInvokingChatClient where possible.
Rather than doubling-down on these bespoke helpers, I wonder if at this point we should start working on the abstraction for the bidirectional streaming APIs. We know we're going to want something that encompasses OpenAI's realtime APIs, as well as the text-to-audio and audio-to-text scenarios, and wanting to layer in automatic function invocation highlights the need for a similar pipeline model.
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:extensions/src/Libraries/Microsoft.Extensions.AI.OpenAI/OpenAIRealtimeExtensions.cs
Lines 107 to 145 in 5161cb9
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.
The text was updated successfully, but these errors were encountered: