rusinopp commited on
Commit
9d71992
·
verified ·
1 Parent(s): a158524

Upload cui_display.py

Browse files
Files changed (1) hide show
  1. cui_display.py +22 -0
cui_display.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ def display_cui_response(user_input, interpretation, intention, persona, response_text):
3
+ """
4
+ 圭介さんの応答プロセスをCUI形式で可視化する関数。
5
+
6
+ Parameters:
7
+ - user_input: ユーザーの発話
8
+ - interpretation: 解釈された感情や意味
9
+ - intention: 応答方針(どんな気持ちでどう返そうとしたか)
10
+ - persona: 使用されたペルソナ名
11
+ - response_text: 実際の発話内容
12
+ """
13
+
14
+ output = f"""┌────────────────────────────┐
15
+ │ 👂 Input  :{user_input}
16
+ │ 📖 理解  :{interpretation}
17
+ │ 🧠 解釈  :{intention}
18
+ │ 🎭 ペルソナ:{persona}
19
+ │ 💬 発話  :{response_text}
20
+ └────────────────────────────┘
21
+ """
22
+ return output