diff --git a/autogen/agentchat/conversable_agent.py b/autogen/agentchat/conversable_agent.py index 216c94c6df8..95c178aa074 100644 --- a/autogen/agentchat/conversable_agent.py +++ b/autogen/agentchat/conversable_agent.py @@ -837,9 +837,7 @@ def _raise_exception_on_async_reply_functions(self) -> None: RuntimeError: if any async reply functions are registered. """ reply_functions = { - f["reply_func"] - for f in self._reply_func_list - if not f.get("ignore_async_in_sync_chat", False) + f["reply_func"] for f in self._reply_func_list if not f.get("ignore_async_in_sync_chat", False) } async_reply_functions = [f for f in reply_functions if inspect.iscoroutinefunction(f)]