tools
tools copied to clipboard
fix(workflow): respect tools=[] and avoid recursion
Summary
- Respect explicit
tools: []on a task (no tools) instead of inheriting the parent agent’s tool registry. - When a task omits
tools, inherit parent tools exceptworkflowto avoid recursive workflow invocations.
Related Issues
Fixes #383
Testing
python -m py_compile src/strands_tools/workflow.py tests/test_workflow.py