feat(chat-training): 优化员工培训agent工作区交互

This commit is contained in:
runny committed 2026-07-09 10:14:12 +08:00
1 parent 37e08c83d8
commit 5bef77f86c
10 files changed
+126 -165

No files matched your search

+8 -4
View File
@@ -480,8 +480,8 @@
"title": "",
"subtitle": "Complete video learning, knowledge review, one-question-at-a-time testing, and HR reporting in the same chat page.",
"tabs": {
"learner": "Learner",
"admin": "HR Admin"
"learner": "Employee Training",
"admin": "Training Management"
},
"actions": {
"syncLearnerToChat": "Sync learner context to chat",
@@ -549,6 +549,10 @@
"employeeId": "Employee ID",
"department": "Department"
},
"examQuestionCard": {
"title": "Exam Questions",
"hint": "Shows all question numbers. They become clickable only during the step-by-step exam stage."
},
"rules": {
"title": "Exam rules",
"rule1": "There are {total} questions, and the system calculates the result on a 100-point scale.",
@@ -603,12 +607,12 @@
"examInProgress": "I am taking the onboarding training exam and am currently on question {index}/{total}. Please stay in proctor mode and continue.",
"assistantVideoIntro": "👋 Welcome aboard! I am your onboarding training assistant. Today's training has three steps: watch the video ➡️ review the key knowledge points ➡️ take the quiz ({passScore} points to pass).\n\n▶️ Please start with the onboarding training video. After watching it, move on to the knowledge review.",
"assistantSummaryIntro": "Great. Based on the video, I pulled together the key knowledge points you are most likely to be tested on:",
"assistantSummaryReady": "Ready for the challenge? Click Start Exam directly or reply \"Start Exam\" in the chat.",
"assistantSummaryReady": "Ready for the challenge? Click Start Exam directly in the workspace.",
"assistantQuestionSingleType": "Single choice",
"assistantQuestionBooleanType": "True or false",
"assistantQuestionReplyHint": "Reply with the option or the answer text directly.",
"assistantResultPass": "🎉 **Congratulations!** Your final score is **{score}**. You passed the onboarding assessment, and your score has been synced to HR automatically.",
"assistantResultFail": "📊 **Exam finished!** Your final score is **{score}**. The passing line is {passScore}. Reply \"Retake Exam\" to try again.",
"assistantResultFail": "📊 **Exam finished!** Your final score is **{score}**. The passing line is {passScore}. Click Retake Exam in the workspace to try again.",
"startExamCommand": "Start Exam",
"restartExamCommand": "Retake Exam"
},
+8 -4
View File
@@ -480,8 +480,8 @@
"title": "",
"subtitle": "ทำวิดีโอเรียนรู้ ทบทวนความรู้ สอบทีละข้อ และดูสถิติ HR ได้ในหน้าแชตเดียวกัน",
"tabs": {
"learner": "ผู้เรียน",
"admin": "HR Admin"
"learner": "อบรมพนักงาน",
"admin": "จัดการอบรม"
},
"actions": {
"syncLearnerToChat": "ส่งบริบทผู้เรียนเข้าแชต",
@@ -549,6 +549,10 @@
"employeeId": "รหัสพนักงาน",
"department": "แผนก"
},
"examQuestionCard": {
"title": "ข้อสอบ",
"hint": "แสดงหมายเลขข้อทั้งหมด และจะกดได้เฉพาะในขั้นตอนสอบทีละข้อเท่านั้น"
},
"rules": {
"title": "กติกาการสอบ",
"rule1": "มีทั้งหมด {total} ข้อ และระบบจะคำนวณผลสอบบนสเกล 100 คะแนน",
@@ -603,12 +607,12 @@
"examInProgress": "ฉันกำลังสอบอบรมพนักงานใหม่ ตอนนี้อยู่ที่ข้อ {index}/{total} โปรดทำหน้าที่เป็นผู้คุมสอบและถามต่อ",
"assistantVideoIntro": "👋 ยินดีต้อนรับสู่บริษัท! ฉันคือผู้ช่วยอบรมพนักงานใหม่ของคุณ วันนี้มี 3 ขั้นตอนคือ ดูวิดีโอ ➡️ ทบทวนความรู้ ➡️ ทำแบบทดสอบ (ผ่านที่ {passScore} คะแนน)\n\n▶️ โปรดเริ่มจากการดูวิดีโออบรมพนักงานใหม่ แล้วจึงเข้าสู่ช่วงทบทวนความรู้",
"assistantSummaryIntro": "ยอดเยี่ยม จากวิดีโอเมื่อครู่นี้ ฉันสรุปประเด็นสำคัญที่มีโอกาสออกสอบไว้ให้แล้ว:",
"assistantSummaryReady": "พร้อมรับความท้าทายหรือยัง? กดเริ่มสอบได้เลย หรือพิมพ์ \"เริ่มสอบ\" ในแชตก็ได้",
"assistantSummaryReady": "พร้อมรับความท้าทายหรือยัง? โปรดกดเริ่มสอบจากพื้นที่ทำงานได้เลย",
"assistantQuestionSingleType": "ปรนัย",
"assistantQuestionBooleanType": "ถูกหรือผิด",
"assistantQuestionReplyHint": "ตอบด้วยตัวเลือกหรือข้อความคำตอบได้โดยตรง",
"assistantResultPass": "🎉 **ยินดีด้วย!** คุณได้คะแนนสุดท้าย **{score}** และผ่านการประเมินพนักงานใหม่แล้ว ระบบได้ซิงก์คะแนนไปยัง HR โดยอัตโนมัติ",
"assistantResultFail": "📊 **สอบเสร็จแล้ว!** คะแนนสุดท้ายของคุณคือ **{score}** เกณฑ์ผ่านคือ {passScore} คะแนน พิมพ์ \"สอบใหม่\" เพื่อเริ่มอีกครั้ง",
"assistantResultFail": "📊 **สอบเสร็จแล้ว!** คะแนนสุดท้ายของคุณคือ **{score}** เกณฑ์ผ่านคือ {passScore} คะแนน โปรดกดสอบใหม่จากพื้นที่ทำงานเพื่อเริ่มอีกครั้ง",
"startExamCommand": "เริ่มสอบ",
"restartExamCommand": "สอบใหม่"
},
+8 -4
View File
@@ -480,8 +480,8 @@
"title": "",
"subtitle": "在同一个 Chat 页面内完成视频学习、知识点复盘、逐题考试以及 HR 管理统计。",
"tabs": {
"learner": "学员端",
"admin": "HR 管理"
"learner": "员工培训",
"admin": "培训管理"
},
"actions": {
"syncLearnerToChat": "同步学员上下文到聊天",
@@ -549,6 +549,10 @@
"employeeId": "工号",
"department": "部门"
},
"examQuestionCard": {
"title": "考试题目",
"hint": "展示全部题目序号;仅在“逐题考试”阶段可点击切换。"
},
"rules": {
"title": "考试规则",
"rule1": "共 {total} 题,系统按百分制自动计算成绩。",
@@ -603,12 +607,12 @@
"examInProgress": "我正在进行新人培训考试,目前做到第 {index}/{total} 题。题目是:{question}。请保持考官模式,评价我的表现并引导我继续。",
"assistantVideoIntro": "👋 欢迎加入公司!我是你的专属入职培训助手。今天的培训分为三个步骤:看视频 ➡️ 知识点复盘 ➡️ 随堂测试({passScore} 分及格)。\n\n▶️ 请先点击观看【入职培训视频】。观看完毕后,点击进入【知识点复盘】。",
"assistantSummaryIntro": "太棒了!结合刚才的视频,我为你提炼了以下核心知识点(必考哦):",
"assistantSummaryReady": "准备好接受挑战了吗?直接点击【开始考试】或在 Chat 中回复【开始考试】。",
"assistantSummaryReady": "准备好接受挑战了吗?请直接在工作区点击【开始考试】。",
"assistantQuestionSingleType": "单选题",
"assistantQuestionBooleanType": "判断题",
"assistantQuestionReplyHint": "请直接回复选项或内容。",
"assistantResultPass": "🎉 **恭喜!** 您的最终得分是 **{score} 分**,已顺利通过新人考核!您的成绩已自动同步至人事部门。",
"assistantResultFail": "📊 **考试结束!** 您的最终得分是 **{score} 分**。及格线为 {passScore} 分。请回复【重新考试】再次挑战!",
"assistantResultFail": "📊 **考试结束!** 您的最终得分是 **{score} 分**。及格线为 {passScore} 分。请在工作区点击【重新考试】再次挑战!",
"startExamCommand": "开始考试",
"restartExamCommand": "重新考试"
},
+8 -4
View File
@@ -480,8 +480,8 @@
"title": "",
"subtitle": "在同一個 Chat 頁面內完成影片學習、知識點複盤、逐題考試與 HR 管理統計。",
"tabs": {
"learner": "學員端",
"admin": "HR 管理"
"learner": "員工培訓",
"admin": "培訓管理"
},
"actions": {
"syncLearnerToChat": "同步學員上下文到聊天",
@@ -549,6 +549,10 @@
"employeeId": "工號",
"department": "部門"
},
"examQuestionCard": {
"title": "考試題目",
"hint": "顯示全部題目序號;僅在「逐題考試」階段可點擊切換。"
},
"rules": {
"title": "考試規則",
"rule1": "共 {total} 題,系統按百分制自動計算成績。",
@@ -603,12 +607,12 @@
"examInProgress": "我正在進行新人培訓考試,目前做到第 {index}/{total} 題,請保持考官模式繼續出題。",
"assistantVideoIntro": "👋 歡迎加入公司!我是你的專屬入職培訓助手。今天的培訓分為三個步驟:看影片 ➡️ 知識點複盤 ➡️ 隨堂測試({passScore} 分及格)。\n\n▶️ 請先點擊觀看【入職培訓影片】。觀看完畢後,點擊進入【知識點複盤】。",
"assistantSummaryIntro": "太棒了!結合剛才的影片,我為你提煉了以下核心知識點(必考哦):",
"assistantSummaryReady": "準備好接受挑戰了嗎?直接點擊【開始考試】或在 Chat 中回覆【開始考試】。",
"assistantSummaryReady": "準備好接受挑戰了嗎?請直接在工作區點擊【開始考試】。",
"assistantQuestionSingleType": "單選題",
"assistantQuestionBooleanType": "判斷題",
"assistantQuestionReplyHint": "請直接回覆選項或內容。",
"assistantResultPass": "🎉 **恭喜!** 你的最終得分是 **{score} 分**,已順利通過新人考核!成績已自動同步至人事部門。",
"assistantResultFail": "📊 **考試結束!** 你的最終得分是 **{score} 分**。及格線為 {passScore} 分。請回覆【重新考試】再次挑戰!",
"assistantResultFail": "📊 **考試結束!** 你的最終得分是 **{score} 分**。及格線為 {passScore} 分。請在工作區點擊【重新考試】再次挑戰!",
"startExamCommand": "開始考試",
"restartExamCommand": "重新考試"
},