mirror of
https://github.com/microsoft/autogen.git
synced 2026-04-20 03:02:16 -04:00
Initialize BaseGroupChat before reset (#5608)
Fixes #5366 Solution: Instead of raising an error called `_init()` --------- Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
This commit is contained in:
@@ -494,7 +494,7 @@ class BaseGroupChat(Team, ABC, ComponentBase[BaseModel]):
|
||||
"""
|
||||
|
||||
if not self._initialized:
|
||||
raise RuntimeError("The group chat has not been initialized. It must be run before it can be reset.")
|
||||
await self._init(self._runtime)
|
||||
|
||||
if self._is_running:
|
||||
raise RuntimeError("The group chat is currently running. It must be stopped before it can be reset.")
|
||||
|
||||
Reference in New Issue
Block a user