| from external_api_engine import call_external_api | |
| from cui_display import display_cui_response | |
| def chat(user_input): | |
| # 外部APIでけいすけさんの返答を取得 | |
| response_text = call_external_api(user_input) | |
| # ↓ここではEmotionCoreなどの解析は仮定(固定で記述) | |
| interpretation = "安心したいという内面の訴え" | |
| intention = "静かに寄り添って励ましたい" | |
| persona = "感情人格(Keisuke-Emotion)" | |
| # CUI形式で表示ログ生成 | |
| cui_log = display_cui_response(user_input, interpretation, intention, persona, response_text) | |
| return cui_log | |