( a: string | ContentBlockParam[], )
| 2485 | } |
| 2486 | |
| 2487 | function normalizeUserTextContent( |
| 2488 | a: string | ContentBlockParam[], |
| 2489 | ): ContentBlockParam[] { |
| 2490 | if (typeof a === 'string') { |
| 2491 | return [{ type: 'text', text: a }] |
| 2492 | } |
| 2493 | return a |
| 2494 | } |
| 2495 | |
| 2496 | /** |
| 2497 | * Concatenate two content block arrays, appending `\n` to a's last text block |
no outgoing calls
no test coverage detected