Unified · Split
| @@ -31,11 +31,15 @@ const ( · 30 unmodified lines | ||
| 31 | 31 | |
| 32 | 32 | // DefaultAssistantContentWithTools is the fallback content for assistant messages |
| 33 | 33 | // that have tool_use but no text content. Kiro API requires non-empty content. |
| 34 | − DefaultAssistantContentWithTools = "I'll help you with that." | |
| 34 | + // IMPORTANT: Use a minimal neutral string that the model won't mimic in responses. | |
| 35 | + // Previously "I'll help you with that." which caused the model to parrot it back. | |
| 36 | + DefaultAssistantContentWithTools = "." | |
| 35 | 37 | |
| 36 | 38 | // DefaultAssistantContent is the fallback content for assistant messages |
| 37 | 39 | // that have no content at all. Kiro API requires non-empty content. |
| 38 | − DefaultAssistantContent = "I understand." | |
| 40 | + // IMPORTANT: Use a minimal neutral string that the model won't mimic in responses. | |
| 41 | + // Previously "I understand." which could leak into model behavior. | |
| 42 | + DefaultAssistantContent = "." | |
| 39 | 43 | |
| 40 | 44 | // DefaultUserContentWithToolResults is the fallback content for user messages |
| 41 | 45 | // that have only tool_result (no text). Kiro API requires non-empty content. |