Skip to content

GroupChatManager don't work with async functions registered with register_reply #494

@bonadio

Description

@bonadio

Hi

I have a web integration with Autogen which uses asyncio
https://github.com/bonadio/autogenwebdemo

If I try to use GroupChatManager my UI never gets updated.
the problem is that GroupChatManager only calls the synchronous version of "generate_reply" after selecting the speaker

speaker = groupchat.select_speaker(speaker, self)
reply = speaker.generate_reply(sender=self)

this synchronous version ignores any async function registered with register_reply

would be nice to have an async version. I think if we have a GroupChatManager.run_chat and a GroupChatManager.a_run_chat it would work. I have a async version example here https://github.com/bonadio/autogenwebdemo/blob/main/backend/src/groupchatweb.py

If this is the correct way I could create a PR to that.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions