(value: string)
| 84 | } |
| 85 | |
| 86 | function normalizeUserMessageText(value: string): string | undefined { |
| 87 | const text = value.trim().replace(/\s+/g, ' ') |
| 88 | return text.length > 0 ? text : undefined |
| 89 | } |
| 90 | |
| 91 | function extractUserMessageText(content: unknown): string | undefined { |
| 92 | if (typeof content === 'string') { |
no outgoing calls
no test coverage detected