Skip to content

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

Open
TheDerbiedOne wants to merge 1 commit into
strands-agents:mainfrom
TheDerbiedOne:codex/workflow-tools-inheritance-no-recursion
Open

fix(workflow): respect tools=[] and avoid recursion#484
TheDerbiedOne wants to merge 1 commit into
strands-agents:mainfrom
TheDerbiedOne:codex/workflow-tools-inheritance-no-recursion

Conversation

@TheDerbiedOne
Copy link
Copy Markdown

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

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.

[BUG] Workflow tool is recursively inherited by task agents, causing infinite loops

2 participants