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 8ca62a2 commit b0bb102Copy full SHA for b0bb102
src/strands/models/anthropic.py
@@ -414,7 +414,7 @@ async def structured_output(
414
stop_reason, messages, _, _ = event["stop"]
415
416
if stop_reason != "tool_use":
417
- raise ValueError("No valid tool use or tool use input was found in the Anthropic response.")
+ raise ValueError(f"Model returned stop_reason: {stop_reason} instead of \"tool_use\".")
418
419
content = messages["content"]
420
output_response: dict[str, Any] | None = None
0 commit comments