Expected Behaviour
In Python, when using a BedrockLLMAgent and the DynamoDBStorage class and when using Tools, no ToolResult is saved?
[ERROR] 2025-11-14T14:57:54.916Z 474c8063-7aaf-4e9a-xxxx-xxxxxx Error invoking Bedrock model:An error occurred (ValidationException) when calling the Converse operation: The model returned the following errors: messages.2: tool_use ids were found without tool_result blocks immediately after: tooluse_xxxxx-G1IVtjezIA. Each tool_use block must have a corresponding tool_result block in the next message.
Any inputs?
Thanks!!
Current Behaviour
Further requests failing after a first use of a Tool
Code snippet
Possible Solution
No response
Steps to Reproduce
Expected Behaviour
In Python, when using a BedrockLLMAgent and the DynamoDBStorage class and when using Tools, no ToolResult is saved?
[ERROR] 2025-11-14T14:57:54.916Z 474c8063-7aaf-4e9a-xxxx-xxxxxx Error invoking Bedrock model:An error occurred (ValidationException) when calling the Converse operation: The model returned the following errors: messages.2:
tool_useids were found withouttool_resultblocks immediately after: tooluse_xxxxx-G1IVtjezIA. Eachtool_useblock must have a correspondingtool_resultblock in the next message.Any inputs?
Thanks!!
Current Behaviour
Further requests failing after a first use of a Tool
Code snippet
-Possible Solution
No response
Steps to Reproduce