From 8dbe325a22f588f0fd225a78df7f2717bd24dc41 Mon Sep 17 00:00:00 2001 From: Claude-51124 Date: Sat, 3 Jan 2026 22:04:59 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20=EA=B3=84=ED=9A=8D=20=EB=AC=B8=EC=84=9C?= =?UTF-8?q?=20=EC=9B=90=EC=B9=99=20=EC=A4=80=EC=88=98=20-=20=EA=B5=AC?= =?UTF-8?q?=ED=98=84=20=EC=99=84=EB=A3=8C=20=EC=84=B9=EC=85=98=20=EC=82=AD?= =?UTF-8?q?=EC=A0=9C=20=EB=B0=8F=20troubleshooting=20=EB=A7=81=ED=81=AC?= =?UTF-8?q?=EB=A1=9C=20=EB=8C=80=EC=B2=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 원칙 50: 구현 완료 섹션은 즉시 삭제, troubleshooting 링크로만 대체 - archive 문서 정리 --- .../251016_emotion_integration_plan.md | 30 +------------------ 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/journey/plans/archive/251016_emotion_integration_plan.md b/journey/plans/archive/251016_emotion_integration_plan.md index 590ca03..adea7f7 100644 --- a/journey/plans/archive/251016_emotion_integration_plan.md +++ b/journey/plans/archive/251016_emotion_integration_plan.md @@ -22,35 +22,7 @@ ## 구현 완료: 감정 기반 응답 톤 자동 조정 -**완료일**: 2025-01-03 -**커밋**: (푸시 전) - -### 완료 사항 -- ✅ `llm_service.py`에서 감정 분석 후 system_instruction 동적 생성 (227-233줄) -- ✅ single_strategies/compound_strategies로 감정-전략 매핑 (202-208줄) -- ✅ XML 구조화된 system_instruction을 context에 추가하여 gemini_handler에 전달 -- ✅ 이모지 제거: remove_emoji로 모든 이모지 제거 (원칙 준수: 명시적 요청 시만 허용) -- ✅ 응답 길이 명시적 제어: emotion_length_map 추가, system_instruction에 길이 지시 포함 (210-220줄, 244줄) - -### 구현 상세 - -**감정별 응답 길이 매핑** (`llm_service.py:210-220`): -```python -emotion_length_map = { - 'fear': "짧게", - 'anger': "중간", - 'sadness': "중간", - 'joy': "중간", - 'happiness': "중간", - 'surprise': "중간", - 'disgust': "중간", - 'neutral': "중간" -} -``` - -**system_instruction에 길이 지시 추가** (`llm_service.py:244`): -- 전략 텍스트와 함께 길이 지시 포함: "{strategy} {length_instruction} 응답하세요." -- 예: "공감과 이해를 담아 부드럽게 짧게 응답하세요." (fear 감정) +→ 상세: `troubleshooting/250103_감정_기반_응답_길이_제어_구현.md` ---