mirror of
https://github.com/microsoft/autogen.git
synced 2025-11-02 18:59:48 +00:00
adjust the order of message processing (#1841)
This commit is contained in:
parent
2912f554a3
commit
f749deeda9
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user