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 c9ad2a0 commit d188a90Copy full SHA for d188a90
src/strands/tools/registry.py
@@ -192,9 +192,9 @@ def register_tool(self, tool: AgentTool) -> None:
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 and not tool.supports_hot_reload:
195
- raise ValueError(
196
- f"Tool name '{tool.tool_name}' already exists. Cannot register tools with exact same name."
197
- )
+ raise ValueError(
+ f"Tool name '{tool.tool_name}' already exists. Cannot register tools with exact same name."
+ )
198
199
# Check for normalized name conflicts (- vs _)
200
if self.registry.get(tool.tool_name) is None:
0 commit comments