Build and run agents you can see, understand and trust.
Python agentchatbotlarge-language-modelsllmllm-agentmcpmulti-agentmulti-modalreact-agentrealtime-agentvoice-agentvoice-assistant
[HOTFIX] Fix bug of the ReActAgent that doesn't initialize the long-term memory control mode correctly (#760)
Osier-Yi95a78b5ea57e
diff --git a/src/agentscope/agent/_react_agent.py b/src/agentscope/agent/_react_agent.pyindex 00f90335c..fd1dacef4 100644--- a/src/agentscope/agent/_react_agent.py+++ b/src/agentscope/agent/_react_agent.py@@ -151,7 +151,10 @@ class ReActAgent(ReActAgentBase):"static_control","both",]- self._agent_control = long_term_memory and not self._static_control+ self._agent_control = long_term_memory and long_term_memory_mode in [+ "agent_control",+ "both",+ ]# If None, a default Toolkit will be createdself.toolkit = toolkit or Toolkit()