Skip to content

Conversation

cagataycali
Copy link
Member

I've noticed that in our module based tools, we're not setting the supports_hot_reload property, which leads to not hot-reload those tools.

  • Add supports_hot_reload property that returns True for function-based tools
  • This enables proper hot reload support for TOOL_SPEC + function() pattern tools
  • Aligns with the conditional check in PR fix: fix loading tools with same tool name #772 for tool reloading logic

Testing

  • I ran hatch run prepare

Checklist

  • I have read the CONTRIBUTING document
  • I have added any necessary tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • I have added an appropriate example to the documentation to outline the feature, or no new docs are needed
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

- Add supports_hot_reload property that returns True for function-based tools
- This enables proper hot reload support for TOOL_SPEC + function() pattern tools
- Aligns with the conditional check in PR strands-agents#772 for tool reloading logic
JackYPCOnline
JackYPCOnline previously approved these changes Sep 25, 2025
…entTool

- Update test_supports_hot_reload to expect True (PythonAgentTool now supports hot reload)
- Fix test_register_tool_duplicate_name_without_hot_reload to use mocked tools without hot reload support
- Add missing patch import in test_registry.py
@cagataycali cagataycali merged commit ecd9eab into strands-agents:main Sep 26, 2025
14 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants