mirror of https://github.com/microsoft/autogen.git
This change ensures we don't try to send messages to the UI when the underlying AutoGen framework is just populating history.
This commit is contained in:
parent
fda10015d6
commit
b27a041c51
|
@ -930,7 +930,7 @@ class ExtendedConversableAgent(autogen.ConversableAgent):
|
|||
request_reply: Optional[bool] = None,
|
||||
silent: Optional[bool] = False,
|
||||
):
|
||||
if self.message_processor:
|
||||
if self.message_processor and not self.a_human_input_function:
|
||||
self.message_processor(sender, self, message, request_reply, silent, sender_type="agent")
|
||||
super().receive(message, sender, request_reply, silent)
|
||||
|
||||
|
@ -1015,7 +1015,7 @@ class ExtendedGroupChatManager(autogen.GroupChatManager):
|
|||
request_reply: Optional[bool] = None,
|
||||
silent: Optional[bool] = False,
|
||||
):
|
||||
if self.message_processor:
|
||||
if self.message_processor and not self.a_human_input_function:
|
||||
self.message_processor(sender, self, message, request_reply, silent, sender_type="groupchat")
|
||||
super().receive(message, sender, request_reply, silent)
|
||||
|
||||
|
|
Loading…
Reference in New Issue