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