UPDATE 03-Nov

This commit is contained in:
PAVEL PALMA
2025-11-03 17:45:46 -06:00
parent 583d3e7bc6
commit a40bc177af
2 changed files with 102 additions and 0 deletions

View File

@@ -74,6 +74,14 @@ public class ConversationContextMapper {
text += " " + entry.parameters().toString();
}
if (entry.type() == MessageType.AGENT) {
text = cleanAgentMessage(text);
}
return text;
}
private String cleanAgentMessage(String message) {
return message.replaceAll("\\s*\\{.*\\}\\s*$", "").trim();
}
}