( a: string | ContentBlockParam[], )
| 2492 | } |
| 2493 | |
| 2494 | function normalizeUserTextContent( |
| 2495 | a: string | ContentBlockParam[], |
| 2496 | ): ContentBlockParam[] { |
| 2497 | if (typeof a === 'string') { |
| 2498 | return [{ type: 'text', text: a }] |
| 2499 | } |
| 2500 | return a |
| 2501 | } |
| 2502 | |
| 2503 | /** |
| 2504 | * Concatenate two content block arrays, appending `\n` to a's last text block |
no outgoing calls
no test coverage detected