Async version of multiple sequential chat#1724
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1724 +/- ##
===========================================
+ Coverage 39.35% 59.13% +19.77%
===========================================
Files 57 57
Lines 6093 6171 +78
Branches 1362 1502 +140
===========================================
+ Hits 2398 3649 +1251
+ Misses 3499 2235 -1264
- Partials 196 287 +91
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
qingyun-wu
left a comment
There was a problem hiding this comment.
The changes in the PR look great! Thank you @randombet! I think it would be even better if we also add methods such as add_chat, remove_chat which allow one to add or remove chat in the chat_queue concurrent to a_initiate_chats. This could be done in a separate PR!
Cool. Let's do it in another PR |
* async_initiate_chats init commit * Fix a_get_human_input bug * Add agentchat_multi_task_async_chats.ipynb with concurrent exampls. * Addess the comments, Update unit test * Add agentchat_multi_task_async_chats.ipynb to Examples.md * Fix type for Python 3.8 --------- Co-authored-by: Qingyun Wu <qingyun0327@gmail.com>
Why are these changes needed?
This PR add a new a_initiate_chats interface to add concurrent execution in comparison to initiate_chats interface.
It allows one to pass multiple tasks and their corresponding dedicated agents and execute concurrently. Depending on the prerequisite task(s), the tasks will be solved in a concurrent manner.
Related issue number
Closes #1596
Checks