We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f4c3a3 commit 8ca62a2Copy full SHA for 8ca62a2
src/strands/models/bedrock.py
@@ -584,7 +584,7 @@ async def structured_output(
584
stop_reason, messages, _, _ = event["stop"]
585
586
if stop_reason != "tool_use":
587
- raise ValueError("No valid tool use or tool use input was found in the Bedrock response.")
+ raise ValueError(f"Model returned stop_reason: {stop_reason} instead of \"tool_use\".")
588
589
content = messages["content"]
590
output_response: dict[str, Any] | None = None
0 commit comments