**Problem**: tool_calls=0 in both successful and failed requests, despite 16-31 turns of Agent SDK work. Tool tracking code finds no tool_use blocks. **Debug addition**: Log content structure for first 10 AssistantMessages: - Content type (str vs list) - If list: number of blocks and types of first 3 blocks - Will show if content contains tool_use blocks or different structure **Expected**: Should see "list with X blocks: [ToolUseBlock, TextBlock, ...]" **If broken**: Will see empty lists or unexpected structure Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
33 KiB
33 KiB