(String userInput)
| 329 | } |
| 330 | |
| 331 | private String prependSkillBodies(String userInput) { |
| 332 | if (skillContextBuffer == null || skillContextBuffer.isEmpty()) { |
| 333 | return userInput; |
| 334 | } |
| 335 | String drained = skillContextBuffer.drain(); |
| 336 | if (drained.isEmpty()) return userInput; |
| 337 | return drained + "\n用户输入:\n" + userInput; |
| 338 | } |
| 339 | |
| 340 | private String buildExternalContext() { |
| 341 | if (!memoryManager.getContextProfile().mcpResourceIndexEnabled()) { |