JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
fix(harness): 拆开召回工具的 deferred 判定条件
xukang3f79b980c142
diff --git a/jiuwenswarm/agents/harness/common/rails/progressive_tool_rail.py b/jiuwenswarm/agents/harness/common/rails/progressive_tool_rail.pyindex 71e7180f35..73d8a4737f 100644--- a/jiuwenswarm/agents/harness/common/rails/progressive_tool_rail.py+++ b/jiuwenswarm/agents/harness/common/rails/progressive_tool_rail.py@@ -1144,13 +1144,11 @@ class ProgressiveToolRail(DeepAgentRail):for tool in tools:name = str(getattr(tool, "name", "") or "")declared, _required_skill = _required_skill_requirement(tool)- if (- not name- or declared- or name in self.eager_tools- or name in blocked- or name == _PINNED_SCHEMA_TOOL_NAME- ):+ if not name or declared:+ continue+ if name in self.eager_tools or name in blocked:+ continue+ if name == _PINNED_SCHEMA_TOOL_NAME:continuedeferred.append(tool)return deferred