Skip to content

run sync and async in async#1242

Merged
sonichi merged 6 commits into
microsoft:mainfrom
yenif:run_sync_funcs_in_async
Jan 15, 2024
Merged

run sync and async in async#1242
sonichi merged 6 commits into
microsoft:mainfrom
yenif:run_sync_funcs_in_async

Conversation

@yenif

@yenif yenif commented Jan 14, 2024

Copy link
Copy Markdown
Contributor

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

codecov-commenter commented Jan 14, 2024

Copy link
Copy Markdown

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
Copy Markdown
Contributor

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

@yenif

yenif commented Jan 14, 2024

Copy link
Copy Markdown
Contributor Author

Yup was in progress :-)

@davorrunje davorrunje left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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
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