generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 212
Open
Labels
bugSomething isn't workingSomething isn't workingquestionFurther information is requestedFurther information is requested
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.20
Tools Package Version
0.2.3
Tools used
AgentCoreBrowser
Python Version
3.11.13
Operating System
Linux
Installation Method
pip
Steps to Reproduce
N/A
Expected Behavior
N/A
Actual Behavior
N/A
Additional Context
Our agent performed some research using AgentCoreBrowser. The agent then responded with the research. On attempting to continue the interaction we received the following error message:
Error: An error occurred (ValidationException) when calling the ConverseStream operation: The content field in the Message object at messages.23 is empty. Add a ContentBlock object to the content field and try again.
The log shows:
// agent output results of research here
// it then attempts to close the session
{'browser_input': {'action': {'type': 'close', 'session_name': 'earthquake-search'}}}
// session close was successful
{'role': 'user', 'content': [{'toolResult': {'status': 'success', 'content': [{'text': 'Browser closed'}], 'toolUseId': 'tooluse_xlunP22fQ4i3XPEkCL0UYQ'}}]}
// agent added an empty message to the ConverseStream
{'role': 'assistant', 'content': []}
Possible Solution
No response
Related Issues
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingquestionFurther information is requestedFurther information is requested