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