(text: string | undefined)
| 163 | } |
| 164 | |
| 165 | function summarizeText(text: string | undefined): string | undefined { |
| 166 | if (!text) { |
| 167 | return undefined |
| 168 | } |
| 169 | const normalized = text.replace(/\s+/g, ' ').trim() |
| 170 | if (!normalized) { |
| 171 | return undefined |
| 172 | } |
| 173 | return normalized.length > 280 |
| 174 | ? `${normalized.slice(0, 277).trimEnd()}...` |
| 175 | : normalized |
| 176 | } |
| 177 | |
| 178 | function resolveWorkflowAgents( |
| 179 | inputAgents: WorkflowAgentInput[], |
no outgoing calls
no test coverage detected