(blocks: RawBlock[])
| 578 | } |
| 579 | |
| 580 | function blocksContainTools(blocks: RawBlock[]): boolean { |
| 581 | return blocks.some((b) => b.type === 'tool_call' || b.type === MothershipStreamV1EventType.tool) |
| 582 | } |
| 583 | |
| 584 | function normalizeBlocks(rawBlocks: RawBlock[], messageContent: string): PersistedContentBlock[] { |
| 585 | const blocks = rawBlocks.map(normalizeBlock) |