Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update position of registered custom generate_reply functions for contrib/ agents per PR #794 #871

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading