(text: string | string[] | undefined)
| 32 | } |
| 33 | |
| 34 | function processOutputText(text: string | string[] | undefined): string { |
| 35 | if (!text) return '' |
| 36 | const rawText = Array.isArray(text) ? text.join('') : text |
| 37 | const { truncatedContent } = formatOutput(rawText) |
| 38 | return truncatedContent |
| 39 | } |
| 40 | |
| 41 | function extractImage( |
| 42 | data: Record<string, unknown>, |
no test coverage detected