@for (item of contents(); track $index) { @switch (item.type) { @case ('text') { } @case ('tool_use') {