File size: 309 Bytes
70dd8d6
 
 
 
 
 
 
1
2
3
4
5
6
7
8
def generate_echo_response(user_input, mode):
    if mode == "Reflective":
        return f"(Echo 回聲:反思你的語句「{user_input}」)"
    elif mode == "Resonant":
        return f"(Echo 共鳴:深感你的語氣餘震)"
    else:
        return f"(Echo 標準回應:{user_input})"