generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Labels
bugSomething isn't workingSomething isn't working
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
0.2.2
Node.js Version
v24.11.1
Operating System
Windows 10
Installation Method
pnpm
Steps to Reproduce
When using AWS bedrock as the provider, when a tool use invocation is stored in a session, the contentBlockFromData does not correctly identify the tool use content block as the key toolUse does not exist, however the type does. We expect it to correctly identify the tool use
Expected Behavior
Tooluse blocks identified correctly, no error thrown
Actual Behavior
Throws an error
message: 'Unknown ContentBlockData type',
stack: 'Error: Unknown ContentBlockData type\n' +
' at contentBlockFromData (<REDACTED>\\node_modules\\.pnpm\\@strands-agents+sdk@0.2.2_@_4fdc0782c8ba8acb774b26fd67f8f25f\\node_modules\\@strands-agents\\sdk\\src\\types\\messages.ts:618:11)\n'
Additional Context
No response
Possible Solution
Use the data.type =='toolUse' as an alternate check
Related Issues
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working