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