()
| 402 | if (textPart) { |
| 403 | textPart.text = `${textPart.text || ''}\n\n# Tool-call retry\n${hint}`; |
| 404 | } else { |
| 405 | last.content = [{ type: 'text', text: hint }, ...last.content]; |
| 406 | } |
| 407 | } |
| 408 | } |
| 409 | return { ...body, messages }; |
| 410 | }; |
| 411 | |
| 412 | /** |
no test coverage detected