diff --git a/autogen/agentchat/contrib/math_user_proxy_agent.py b/autogen/agentchat/contrib/math_user_proxy_agent.py index edf13e650dc..a432211fad4 100644 --- a/autogen/agentchat/contrib/math_user_proxy_agent.py +++ b/autogen/agentchat/contrib/math_user_proxy_agent.py @@ -165,7 +165,7 @@ def __init__( default_auto_reply=default_auto_reply, **kwargs, ) - self.register_reply([Agent, None], MathUserProxyAgent._generate_math_reply, 1) + self.register_reply([Agent, None], MathUserProxyAgent._generate_math_reply, position=2) # fixed var self._max_invalid_q_per_step = max_invalid_q_per_step diff --git a/autogen/agentchat/contrib/teachable_agent.py b/autogen/agentchat/contrib/teachable_agent.py index e746548862c..fc367dc055f 100644 --- a/autogen/agentchat/contrib/teachable_agent.py +++ b/autogen/agentchat/contrib/teachable_agent.py @@ -63,7 +63,7 @@ def __init__( **kwargs, ) # Register a custom reply function. - self.register_reply(Agent, TeachableAgent._generate_teachable_assistant_reply, 1) + self.register_reply(Agent, TeachableAgent._generate_teachable_assistant_reply, position=2) # Assemble the parameter settings. self._teach_config = {} if teach_config is None else teach_config diff --git a/autogen/agentchat/contrib/text_analyzer_agent.py b/autogen/agentchat/contrib/text_analyzer_agent.py index cfc5bc174b3..7a44b178707 100644 --- a/autogen/agentchat/contrib/text_analyzer_agent.py +++ b/autogen/agentchat/contrib/text_analyzer_agent.py @@ -46,7 +46,7 @@ def __init__( llm_config=llm_config, **kwargs, ) - self.register_reply(Agent, TextAnalyzerAgent._analyze_in_reply, 1) + self.register_reply(Agent, TextAnalyzerAgent._analyze_in_reply, position=2) def _analyze_in_reply( self,