Skip to content

Commit b0bb102

Browse files
authored
Update anthropic.py
1 parent 8ca62a2 commit b0bb102

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/strands/models/anthropic.py

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

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

419419
content = messages["content"]
420420
output_response: dict[str, Any] | None = None

0 commit comments

Comments
 (0)