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

Support async nested chats #3309

Merged
merged 10 commits into from
Aug 9, 2024
Merged

Support async nested chats #3309

merged 10 commits into from
Aug 9, 2024

Conversation

heyitsaamir
Copy link
Collaborator

Ported from #3289

In this PR:

  1. We add a new use_async flag to register_nested_chats function. This allows the nested chats to internally run a_initiate_chats instead of initiate_chats.
  2. Added a number of non-open-ai dependent tests for nested chats.

Why are these changes needed?

We support nested chats and async initiate_chats. However, if a chat is started asynchronously, nested chats still currently run in-process.

Related issue number

Closes #3286

Checks

@heyitsaamir heyitsaamir changed the title Allow async nested chats in agent chat Support async nested chats Aug 6, 2024
@heyitsaamir heyitsaamir mentioned this pull request Aug 6, 2024
3 tasks
@qingyun-wu qingyun-wu closed this Aug 9, 2024
auto-merge was automatically disabled August 9, 2024 00:16

Pull request was closed

@qingyun-wu qingyun-wu reopened this Aug 9, 2024
@qingyun-wu qingyun-wu added this pull request to the merge queue Aug 9, 2024
Merged via the queue into main with commit aac6f05 Aug 9, 2024
259 of 303 checks passed
@qingyun-wu qingyun-wu deleted the aamirj/sync_nested_chats branch August 9, 2024 01:20
victordibia pushed a commit that referenced this pull request Aug 28, 2024
* Allow async nested chats in agent chat

* Fix pre-comit

* Minor fix

* Fix

* Address feedback

* Update

* Fix build error

---------

Co-authored-by: Qingyun Wu <qingyun0327@gmail.com>
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.

[Feature Request]: Nested chats should be able to run asynchronously
5 participants