One change
handling-stop-reasons
build-with-claude/handling-stop-reasons
Nearest release: v2.1.239, published 2 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
build-with-claude/handling-stop-reasons Changed · +1 / -2 lines
from line 897
<CodeGroup exclude="shell:cURL"> ```bash CLI - RESPONSE=$(ant messages create --max-tokens 1024 \ - --format jsonl < request.yaml) + RESPONSE=$(ant messages create --max-tokens 1024 --format jsonl < request.yaml) # Check if the response was truncated mid tool use STOP_REASON=$(jq -r '.stop_reason' <<<"$RESPONSE")