tools icon indicating copy to clipboard operation
tools copied to clipboard

fix(workflow): respect tools=[] and avoid recursion

Open TheDerbiedOne opened this issue 6 months ago • 0 comments

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 except workflow to avoid recursive workflow invocations.

Related Issues

Fixes #383

Testing

  • python -m py_compile src/strands_tools/workflow.py tests/test_workflow.py

TheDerbiedOne avatar May 28 '26 03:05 TheDerbiedOne