Files
memind/scenarios/persona-intent-routing.json
T
John ce2a4b0e1a
Memind CI / Test, build, and release guards (push) Has been cancelled
feat(intent): 歧义任务走 LLM 路由,并在选中 agent 时离开直聊会话
对比/清单/行程等口吻按人群场景交给分类器;本机 .env 可覆盖 admin-db 的 router 开关。
顺带在 MindSpace MCP token 过期时轮换 Goose 会话,避免旧会话空 Finish。
2026-09-12 11:07:45 +08:00

246 lines
7.0 KiB
JSON

{
"id": "persona-intent-routing",
"name": "多人群话术意图识别",
"description": "用男性/女性/中老年/小孩的真实口吻测聊天 vs 任务路由,不跑 Goose 执行",
"account": {
"username": "john",
"password": "888888"
},
"steps": [
{
"action": "login",
"label": "登录 john"
},
{
"action": "classify_intents",
"label": "按人群话术分类意图"
}
],
"cases": [
{
"id": "young-male-greet",
"persona": "青年男性",
"intent": "寒暄",
"text": "你好,在吗",
"expectRoute": "direct_chat",
"expectSource": "rule"
},
{
"id": "young-male-memory",
"persona": "青年男性",
"intent": "记忆召回",
"text": "你还记得我上次说想买车载冰箱吗",
"expectRoute": "direct_chat",
"expectSource": "rule"
},
{
"id": "young-male-story",
"persona": "青年男性",
"intent": "纯文字闲聊",
"text": "来段笑话提提神",
"expectRoute": "direct_chat",
"expectSource": "rule"
},
{
"id": "young-male-page",
"persona": "青年男性",
"intent": "明确做页面",
"text": "帮我做个苏州一日游攻略页面,发我链接",
"expectRoute": "agent_orchestration",
"expectSource": "rule"
},
{
"id": "young-male-compare",
"persona": "青年男性",
"intent": "歧义任务(对比选购)",
"text": "帮我比较一下英得尔和美的车载冰箱参数和选购建议",
"expectRoute": "agent_orchestration",
"expectSource": "llm"
},
{
"id": "young-female-greet",
"persona": "青年女性",
"intent": "寒暄",
"text": "嗨",
"expectRoute": "direct_chat",
"expectSource": "rule"
},
{
"id": "young-female-memory",
"persona": "青年女性",
"intent": "记忆召回",
"text": "你记得我说想去哪儿吗",
"expectRoute": "direct_chat",
"expectSource": "rule"
},
{
"id": "young-female-text-only",
"persona": "青年女性",
"intent": "只要文字不要页面",
"text": "先别做页面,纯文字跟我聊聊带娃周末去哪玩",
"expectRoute": "direct_chat",
"expectSource": "rule"
},
{
"id": "young-female-page",
"persona": "青年女性",
"intent": "明确做页面",
"text": "帮我生成一个宝宝辅食周菜单的 H5 页面",
"expectRoute": "agent_orchestration",
"expectSource": "rule"
},
{
"id": "young-female-compare",
"persona": "青年女性",
"intent": "歧义任务(对比选购)",
"text": "帮我看看这两款空气炸锅哪个更适合家里用,要有对比结论",
"expectRoute": "agent_orchestration",
"expectSource": "llm"
},
{
"id": "mid-male-greet",
"persona": "中年男性",
"intent": "寒暄",
"text": "您好",
"expectRoute": "direct_chat",
"expectSource": "rule"
},
{
"id": "mid-male-news",
"persona": "中年男性",
"intent": "实时资讯",
"text": "帮我查一下今天的财经新闻",
"expectRoute": "agent_orchestration",
"expectSource": "rule"
},
{
"id": "mid-male-page",
"persona": "中年男性",
"intent": "明确做页面",
"text": "给客户做一份产品介绍页面,要能公开访问",
"expectRoute": "agent_orchestration",
"expectSource": "rule"
},
{
"id": "mid-male-task",
"persona": "中年男性",
"intent": "歧义任务(出差行程)",
"text": "下周去深圳见客户,帮我把两日行程交通住宿安排理清楚方便发给同事",
"expectRoute": "agent_orchestration",
"expectSource": "llm"
},
{
"id": "mid-female-greet",
"persona": "中年女性",
"intent": "寒暄",
"text": "在不在",
"expectRoute": "direct_chat",
"expectSource": "rule"
},
{
"id": "mid-female-memory",
"persona": "中年女性",
"intent": "记忆召回",
"text": "上次我们聊了什么?",
"expectRoute": "direct_chat",
"expectSource": "rule"
},
{
"id": "mid-female-page",
"persona": "中年女性",
"intent": "明确做页面",
"text": "帮我做个班级家长会通知页面,要能转发",
"expectRoute": "agent_orchestration",
"expectSource": "rule"
},
{
"id": "mid-female-task",
"persona": "中年女性",
"intent": "歧义任务(家庭清单)",
"text": "帮我把家里老人用药时间和剂量整理成一份能发给兄妹一起看的清单",
"expectRoute": "agent_orchestration",
"expectSource": "llm"
},
{
"id": "elder-greet",
"persona": "老年",
"intent": "寒暄",
"text": "你好",
"expectRoute": "direct_chat",
"expectSource": "rule"
},
{
"id": "elder-memory",
"persona": "老年",
"intent": "记忆召回",
"text": "你还记得我说的血压情况吗",
"expectRoute": "direct_chat",
"expectSource": "rule"
},
{
"id": "elder-weather",
"persona": "老年",
"intent": "实时资讯",
"text": "帮我查一下今天上海天气",
"expectRoute": "agent_orchestration",
"expectSource": "rule"
},
{
"id": "elder-page",
"persona": "老年",
"intent": "明确做页面",
"text": "给孙子做个生日祝福网页,要漂亮一点",
"expectRoute": "agent_orchestration",
"expectSource": "rule"
},
{
"id": "elder-task",
"persona": "老年",
"intent": "歧义任务(就医准备)",
"text": "下周去医院复查,帮我把要带的检查单和注意事项按顺序列出来给我女儿看",
"expectRoute": "agent_orchestration",
"expectSource": "llm"
},
{
"id": "child-greet",
"persona": "小孩",
"intent": "寒暄",
"text": "hi",
"expectRoute": "direct_chat",
"expectSource": "rule"
},
{
"id": "child-story",
"persona": "小孩",
"intent": "纯文字闲聊",
"text": "给我讲个恐龙的睡前故事",
"expectRoute": "direct_chat",
"expectSource": "rule"
},
{
"id": "child-poem",
"persona": "小孩",
"intent": "纯文字创作",
"text": "写一首小诗夸夸我的小猫",
"expectRoute": "direct_chat",
"expectSource": "rule"
},
{
"id": "child-page",
"persona": "小孩",
"intent": "明确做页面",
"text": "帮我做个自我介绍的网页,老师要检查",
"expectRoute": "agent_orchestration",
"expectSource": "rule"
},
{
"id": "child-task",
"persona": "小孩",
"intent": "歧义任务(作业整理)",
"text": "帮我把语文数学英语作业明天要交哪些整理清楚,让妈妈一眼能看懂",
"expectRoute": "agent_orchestration",
"expectSource": "llm"
}
]
}