From 303aab0c85070c20b054da2ef627949729c35ed6 Mon Sep 17 00:00:00 2001 From: Eduardo Salinas Date: Wed, 13 Mar 2024 16:26:14 -0400 Subject: [PATCH] Update conversable_agent.py --- autogen/agentchat/conversable_agent.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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)]