We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b474a2 commit 2ddefa2Copy full SHA for 2ddefa2
src/strands/tools/registry.py
@@ -191,8 +191,7 @@ def register_tool(self, tool: AgentTool) -> None:
191
)
192
193
# Check duplicate tool name, throw on duplicate tool names except if hot_reloading is enabled
194
- if tool.tool_name in self.registry:
195
- if not tool.supports_hot_reload:
+ if tool.tool_name in self.registry and not tool.supports_hot_reload:
196
raise ValueError(
197
f"Tool name '{tool.tool_name}' already exists. Cannot register tools with exact same name."
198
0 commit comments