generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 522
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
1.17.0
Python Version
3.12
Operating System
CloudDesktop
Installation Method
pip
Steps to Reproduce
- Create a Bedrock Guardrail with a prompt attack filter (strength: medium).
- Add the guardrail to the Bedrock Model.
- Define a structured output model.
- Add the structured output model and the Bedrock Model to the agent.
- Run
agent("Hello").
The stop reason will be "guardrail_intervened" due to the following message:
sdk-python/src/strands/event_loop/event_loop.py
Lines 233 to 235 in 62534de
| await agent._append_message( | |
| {"role": "user", "content": [{"text": "You must format the previous response as structured output."}]} | |
| ) |
Expected Behavior
The usage of an structured output model should not trigger the guardrails
Actual Behavior
guardrail intervened
Additional Context
No response
Possible Solution
No response
Related Issues
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working