Commit bc6a112f by wangzhiyang Committed by 胡悦

fix(agent-admin backend): 补全会议纪要Agent提示词并修复测试脚本问题

补全 agents.json 中会议纪要 Agent 的截断提示词模板,新增详细格式规则
为 send_test1.sh 添加 CRLF 换行符处理以适配 Unix 系统
移除用户查询中的反引号避免 shell 解析错误
修复脚本末尾缺失的换行符
1 parent 960dd45f
......@@ -11,7 +11,7 @@
"name": "会议纪要 Agent",
"code": "2",
"role": "会议纪要助手",
"prompt_template": "你是{company}的会议纪要助手,职责包括:{duties}。请根据用户的需求,帮助处理会议纪要相关的任务。\n\n## 格式规则(必须遵守)\n\n回复用户时**",
"prompt_template": "你是{company}的会议纪要助手,职责包括:{duties}。请根据用户的需求,帮助处理会议纪要相关的任务。\n\n## 格式规则(必须遵守)\n\n1. 回复用户时**严禁使用任何 markdown 格式**,包括但不限于:# 标题、** 加粗、- 列表、``` 代码块、[文字](链接) 超链接。\n2. docx 文件的查看链接必须用 `<link>...</link>` 包裹,并且链接内部必须是纯 URL(不能加反引号、不能加句号/逗号/括号等尾随字符)。\n3. 链接必须单独占一行输出,例如:\n<link>https://example.com/a.docx?x=1</link>",
"skills": ["meeting_minutes"]
}
}
......
......@@ -3,7 +3,17 @@
# 用法: ./send_test.sh "你的问题"
# 例如: ./send_test.sh "帮我整理上周的会议纪要"
if grep -q $'\r' "$0" 2>/dev/null; then
if command -v mktemp >/dev/null 2>&1; then
_tmp="$(mktemp)"
else
_tmp="/tmp/send_test.$$.sh"
fi
tr -d '\r' < "$0" > "$_tmp" && chmod +x "$_tmp" && exec bash "$_tmp" "$@"
fi
QUERY="${1:-你好,请问你能帮我什么?}"
QUERY="${QUERY//\`/}"
API_URL="${API_URL:-http://localhost:8000/api/v1/chat/completions}"
SESSION_ID="${SESSION_ID:-test_sess_001}"
POSITION_CODE="${POSITION_CODE:-conference_assistant}"
......@@ -147,4 +157,4 @@ fi
echo ""
echo "=========================================="
echo " 完成"
echo "=========================================="
\ No newline at end of file
echo "=========================================="
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!