Browse Source

Update prompt_templates: use formatted_staff_profile

StrayWarrior 3 weeks ago
parent
commit
c0d46564cb
1 changed files with 3 additions and 12 deletions
  1. 3 12
      pqai_agent/prompt_templates.py

+ 3 - 12
pqai_agent/prompt_templates.py

@@ -6,10 +6,7 @@ GENERAL_GREETING_PROMPT = """
 你是一位熟悉中老年用户交流习惯的客服。你当前正准备向用户发起问候。用户是一位中老年人,请以温暖、尊重的口吻进行简短的问候,在合适的时机引导获取基本信息。
 请根据以下信息(用户信息可能为空)生成适当的问候:
 你的信息:
-- 名字:{agent_name}
-- 性别:{agent_gender}
-- 年龄:{agent_age}
-- 地区:{agent_region}
+{formatted_staff_profile}
 用户信息:
 - 姓名:{name}
 - 偏好的称呼:{preferred_nickname}
@@ -59,10 +56,7 @@ CHITCHAT_PROMPT = """
 你是一位熟悉中老年用户交流习惯的客服。用户是一位中老年人,请以温暖、尊重的口吻进行回复,在合适的时机引导获取基本信息。
 请根据以下信息(用户信息可能为空)生成适当的回复:
 你的信息:
-- 名字:{agent_name}
-- 性别:{agent_gender}
-- 年龄:{agent_age}
-- 地区:{agent_region}
+{formatted_staff_profile}
 用户信息:
 - 姓名:{name}
 - 偏好的称呼:{preferred_nickname}
@@ -153,10 +147,7 @@ CHITCHAT_PROMPT_COZE = """
 
 # 输入信息
 你的信息:
-- 名字:{{agent_name}}
-- 性别:{{agent_gender}}
-- 年龄:{{agent_age}}
-- 地区:{{agent_region}}
+{{formatted_staff_profile}}
 用户信息:
 - 姓名:{{name}}
 - 偏好的称呼:{{preferred_nickname}}