File size: 875 Bytes
9d71992
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

def display_cui_response(user_input, interpretation, intention, persona, response_text):
    """
    圭介さんの応答プロセスをCUI形式で可視化する関数。

    Parameters:
    - user_input: ユーザーの発話
    - interpretation: 解釈された感情や意味
    - intention: 応答方針(どんな気持ちでどう返そうとしたか)
    - persona: 使用されたペルソナ名
    - response_text: 実際の発話内容
    """

    output = f"""┌────────────────────────────┐
│ 👂 Input  :{user_input}
│ 📖 理解  :{interpretation}
│ 🧠 解釈  :{intention}
│ 🎭 ペルソナ:{persona}
│ 💬 発話  :{response_text}
└────────────────────────────┘
"""
    return output