Skip to content

Build and run agents you can see, understand and trust.

fix(ReActAgent): fix the argument `enable_meta_tool` in `ReActAgent` class (#995)

qbc5a247979e410
diff --git a/src/agentscope/agent/_react_agent.py b/src/agentscope/agent/_react_agent.py
index 47afd745f..d1569c588 100644
--- a/src/agentscope/agent/_react_agent.py
+++ b/src/agentscope/agent/_react_agent.py
@@ -166,7 +166,7 @@ class ReActAgent(ReActAgentBase):
long_term_memory.retrieve_from_memory,
)
# Add a meta tool function to allow agent-controlled tool management
- if enable_meta_tool or plan_notebook:
+ if enable_meta_tool:
self.toolkit.register_tool_function(
self.toolkit.reset_equipped_tools,
)