(content)
| 603 | } |
| 604 | |
| 605 | function normalizeBlocks(content) { |
| 606 | if (!content) { |
| 607 | return [] |
| 608 | } |
| 609 | if (typeof content === 'string') { |
| 610 | return [{ type: 'text', text: content }] |
| 611 | } |
| 612 | if (!Array.isArray(content)) { |
| 613 | return [] |
| 614 | } |
| 615 | return content |
| 616 | } |
| 617 | |
| 618 | function flattenToolResult(content) { |
| 619 | if (typeof content === 'string') { |
no outgoing calls
no test coverage detected