Skip to content
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

run sync and async in async #1242

Merged
merged 6 commits into from
Jan 15, 2024
Merged

Conversation

yenif
Copy link
Collaborator

@yenif yenif commented Jan 14, 2024

Why are these changes needed?

Run sync tools in async to match behavior of functions in parallel tool calling

Related issue number

Closes #1205

Checks

@codecov-commenter
Copy link

codecov-commenter commented Jan 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3b2955d) 31.60% compared to head (e96e545) 50.94%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1242       +/-   ##
===========================================
+ Coverage   31.60%   50.94%   +19.34%     
===========================================
  Files          32       32               
  Lines        4389     4387        -2     
  Branches     1024     1078       +54     
===========================================
+ Hits         1387     2235      +848     
+ Misses       2892     1946      -946     
- Partials      110      206       +96     
Flag Coverage Δ
unittests 50.87% <100.00%> (+19.32%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yenif yenif requested a review from davorrunje January 14, 2024 05:20
@davorrunje
Copy link
Collaborator

I think your code is a correct bug fix, but not for #1205 (it is about 2 calls suggested in the same response).

@yenif
Copy link
Collaborator Author

yenif commented Jan 14, 2024

Yup was in progress :-)

Copy link
Collaborator

@davorrunje davorrunje left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please uncomment the last cell in notebook/agentchat_function_call_async.ipynb?

Everything else looks good 👍

@davorrunje
Copy link
Collaborator

LGTM 👍

@sonichi sonichi added this pull request to the merge queue Jan 15, 2024
Merged via the queue into microsoft:main with commit 63a35e7 Jan 15, 2024
79 of 84 checks passed
joshkyh pushed a commit that referenced this pull request Jan 17, 2024
* run sync and async in async

* test for async multitool call

* uncomment notebook

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Davor Runje <davor@airt.ai>
whiskyboy pushed a commit to whiskyboy/autogen that referenced this pull request Apr 17, 2024
* run sync and async in async

* test for async multitool call

* uncomment notebook

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Davor Runje <davor@airt.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: tool callings fails for two calls in the same message
4 participants