mirror of
https://github.com/microsoft/autogen.git
synced 2026-04-20 03:02:16 -04:00
adjust the order of message processing (#1841)
This commit is contained in:
@@ -1732,14 +1732,14 @@ class ConversableAgent(LLMAgent):
|
||||
if messages is None:
|
||||
messages = self._oai_messages[sender]
|
||||
|
||||
# Call the hookable method that gives registered hooks a chance to process all messages.
|
||||
# Message modifications do not affect the incoming messages or self._oai_messages.
|
||||
messages = self.process_all_messages_before_reply(messages)
|
||||
|
||||
# Call the hookable method that gives registered hooks a chance to process the last message.
|
||||
# Message modifications do not affect the incoming messages or self._oai_messages.
|
||||
messages = self.process_last_received_message(messages)
|
||||
|
||||
# Call the hookable method that gives registered hooks a chance to process all messages.
|
||||
# Message modifications do not affect the incoming messages or self._oai_messages.
|
||||
messages = self.process_all_messages_before_reply(messages)
|
||||
|
||||
for reply_func_tuple in self._reply_func_list:
|
||||
reply_func = reply_func_tuple["reply_func"]
|
||||
if "exclude" in kwargs and reply_func in kwargs["exclude"]:
|
||||
|
||||
@@ -1 +1 @@
|
||||
__version__ = "0.2.16"
|
||||
__version__ = "0.2.17"
|
||||
|
||||
Reference in New Issue
Block a user