-
Notifications
You must be signed in to change notification settings - Fork 4k
.Net: Include streaming tool call information in model diagnostics #6305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.Net: Include streaming tool call information in model diagnostics #6305
Conversation
Do the other connectors that currently support function calling (Gemini, Mistral) have a similar problem? |
I intentionally did not record the tool calls information in the Gemini connector, since it's going to adapt to the |
Mistral has the same issue with its streaming API. I will address it in a separate PR. Issue: #6316 |
…icrosoft#6305) ### Motivation and Context <!-- Thank you for your contribution to the semantic-kernel repo! Please help reviewers and future users, providing the following information: 1. Why is this change required? 2. What problem does it solve? 3. What scenario does it contribute to? 4. If it fixes an open issue, please link to the issue here. --> Tool call information is currently not included in the model diagnostics when using the streaming APIs. ### Description <!-- Describe your changes, the overall approach, the underlying design. These notes will help understanding how your code works. Thanks! --> 1. Record OpenAI tool call information in model diagnostics for the streaming API. 2. If there is no tool call information, do not record an empty entry. ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [ ] The code builds clean without any errors or warnings - [ ] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [ ] All unit tests pass, and I have added new tests where possible - [ ] I didn't break anyone 😄
Motivation and Context
Tool call information is currently not included in the model diagnostics when using the streaming APIs.
Description
Contribution Checklist