-
Notifications
You must be signed in to change notification settings - Fork 166
Description
Checks
- I have updated to the lastest minor and patch version of Strands
- I have checked the documentation and this is not expected behavior
- I have searched ./issues and there are no duplicates of my issue
Strands Version
1.10.2
Tools Package Version
0.2.9
Tools used
- batch
- current_time
Python Version
3.11
Operating System
macOS
Installation Method
pip
Steps to Reproduce
- Import and use the batch tool with multiple tool invocations
- Execute batch tool with tools that return data (e.g., http_request, use_aws)
- Observe the returned results from the batch execution
Expected Behavior
The batch tool should return the actual data/results from each tool execution, allowing the agent to access and use the returned data from parallel tool calls.
Actual Behavior
The batch tool returns generic success/error messages like "tool call was successful" without exposing the actual data returned by the individual tools. The agent receives confirmation that tools executed but cannot access their actual results.
Additional Context
Issue is in /src/strands_tools/batch.py lines 75-85. When tools execute successfully, the actual result data gets wrapped in a status object but isn't properly accessible. Error cases return generic "Tool missing" messages instead of actual error details.
Possible Solution
Modify the batch tool to return actual tool results directly instead of wrapping them in status objects. Ensure the returned data structure preserves the original tool result format that agents expect.
Related Issues
No response