Skip to content

Commit 8ca62a2

Browse files
authored
Update bedrock.py
1 parent 3f4c3a3 commit 8ca62a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/strands/models/bedrock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ async def structured_output(
584584
stop_reason, messages, _, _ = event["stop"]
585585

586586
if stop_reason != "tool_use":
587-
raise ValueError("No valid tool use or tool use input was found in the Bedrock response.")
587+
raise ValueError(f"Model returned stop_reason: {stop_reason} instead of \"tool_use\".")
588588

589589
content = messages["content"]
590590
output_response: dict[str, Any] | None = None

0 commit comments

Comments
 (0)