Skip to content

Commit

Permalink
Update position of registered custom generate_reply functions for con…
Browse files Browse the repository at this point in the history
…trib/ agents per PR #794 (#871)

Co-authored-by: Mollie Munoz <momuno@microsoft.com>
  • Loading branch information
momuno and Mollie Munoz authored Dec 6, 2023
1 parent f8b4b42 commit fa11c4f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion autogen/agentchat/contrib/math_user_proxy_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion autogen/agentchat/contrib/teachable_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion autogen/agentchat/contrib/text_analyzer_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit fa11c4f

Please sign in to comment.