Skip to content

Commit

Permalink
Update conversable_agent.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lalo committed Mar 13, 2024
1 parent b2f04f8 commit 303aab0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions autogen/agentchat/conversable_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 303aab0

Please sign in to comment.