feat(ai): 재무 코멘트에 절약 가이드(tips) 추가

집계 기반으로 현황 코멘트(bullets)에 더해 지출 패턴 맞춤 절약 제안(tips) 2~3개 생성.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
sb
2026-07-05 15:13:09 +09:00
co-authored by Claude Opus 4.8
parent 4aeac2ac0f
commit a34a8250a4
3 changed files with 41 additions and 27 deletions
@@ -326,11 +326,10 @@ public class AccountService {
public com.sb.web.account.dto.AiCommentResponse aiComment(com.sb.web.account.dto.AiCommentRequest req) {
try {
String json = new com.fasterxml.jackson.databind.ObjectMapper().writeValueAsString(req);
return com.sb.web.account.dto.AiCommentResponse.builder()
.bullets(aiEntryParser.financeComment(json))
.build();
return aiEntryParser.financeComment(json);
} catch (Exception e) {
return com.sb.web.account.dto.AiCommentResponse.builder().bullets(java.util.List.of()).build();
return com.sb.web.account.dto.AiCommentResponse.builder()
.bullets(java.util.List.of()).tips(java.util.List.of()).build();
}
}