Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.txt Unofficial
One change · api

API usage primer for Claude changed

claude_api_primer

Nearest release: v2.1.275, published an hour 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.

Recorded here
Lines+12added
Lines−10removed
From line 294 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits7to this page, all time

The whole hunk

from line 294, old and new numbered
/
lines
from line 294
294294 
295295 # The response contains summarized thinking blocks and text blocks
296296 for block in response.content:
297 if block.type == "thinking":
298 print(f"\nThinking summary: {block.thinking}")
299 elif block.type == "text":
300 print(f"\nResponse: {block.text}")
297 match block.type:
298 case "thinking":
299 print(f"\nThinking summary: {block.thinking}")
300 case "text":
301 print(f"\nResponse: {block.text}")
301302 ```
302303</CodeGroup>
303304 
from line 531
530531 )
531532 
532533 for block in response.content:
533 if block.type == "thinking":
534 print(f"Thinking: {block.thinking}")
535 elif block.type == "tool_use":
536 print(f"Tool call: {block.name}({block.input})")
537 elif block.type == "text":
538 print(f"Response: {block.text}")
534 match block.type:
535 case "thinking":
536 print(f"Thinking: {block.thinking}")
537 case "tool_use":
538 print(f"Tool call: {block.name}({block.input})")
539 case "text":
540 print(f"Response: {block.text}")
539541 ```
540542</CodeGroup>
541543