-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Fix for bugs appeared when using function calls with clear history functionality #1531
Fix for bugs appeared when using function calls with clear history functionality #1531
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1531 +/- ##
===========================================
+ Coverage 35.69% 54.64% +18.95%
===========================================
Files 63 63
Lines 6625 6637 +12
Branches 1454 1581 +127
===========================================
+ Hits 2365 3627 +1262
+ Misses 4067 2713 -1354
- Partials 193 297 +104
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Probably need to write test for that improvements, but don't know how to set up agent to call function as default message; any suggestions will be appriciated. |
@sonichi Is it ok now? Can we merge? |
…nctionality (microsoft#1531) * resolved errors happening when using function calling and clear history * checking in nr_of_messages_to_preserve were provided * code formatting * test added, dict signature improved * test added, dict signature improved * test added, dict signature improved * test added, dict signature improved * test added, dict signature improved * test added, dict signature improved * test added, dict signature improved * test added, dict signature improved * Test updated Co-authored-by: Chi Wang <wang.chi@microsoft.com> * test improved * test improved * comment about preserving additional message added * commentary about clear history called in tool response improved * created test for clear hisotry called from tool response * code formatting * added 'USER INTERRUPTED' as internal content of tool response * added separate vatiable 'nr_messages_to_preserve_internal' --------- Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Why are these changes needed?
When started to use manual history feature of GroupChat and agent have made function calls, I found next problems:
To sum up, all bugs were fixed.
Checks