Files
ajarbot/llm_interface.py
Jordan Ramos cc7e623d74 Add detailed AssistantMessage content inspection
**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>
2026-03-01 18:48:24 -07:00

33 KiB