Details (original message): Implement the intent core, conformance suite, catalog alignment, examples, and the intentctl diagnostics CLI.
66 lines
1.7 KiB
JSON
66 lines
1.7 KiB
JSON
{
|
|
"intents": [
|
|
{
|
|
"id": "demo.run.status_query",
|
|
"domain": "demo",
|
|
"version": 1,
|
|
"description": "查询任务运行进度",
|
|
"matcher": {
|
|
"includes_any": ["进度", "状态"],
|
|
"excludes_any": ["配置"]
|
|
},
|
|
"slots": [
|
|
{"key": "run_id", "required": false, "pattern": "(?:run|任务)[:# ]*([A-Za-z0-9-]+)", "group": 1}
|
|
],
|
|
"confidence": {"base": 0.8, "threshold": 0.7},
|
|
"risk": "low",
|
|
"handler": "taskrun.query_status",
|
|
"metadata": {"channel": "dialogue"}
|
|
},
|
|
{
|
|
"id": "demo.run.restart",
|
|
"domain": "demo",
|
|
"version": 1,
|
|
"description": "重启任务",
|
|
"matcher": {"includes_any": ["重启"], "includes_all": ["任务"]},
|
|
"confidence": {"base": 0.75, "threshold": 0.7},
|
|
"risk": "medium",
|
|
"requires_confirm": true,
|
|
"handler": "taskrun.restart"
|
|
},
|
|
{
|
|
"id": "demo.run.cancel",
|
|
"domain": "demo",
|
|
"version": 1,
|
|
"description": "取消任务",
|
|
"matcher": {"includes_any": ["取消"]},
|
|
"slots": [
|
|
{"key": "run_id", "required": true, "pattern": "(?:run|任务)[:# ]*([A-Za-z0-9-]+)", "group": 1}
|
|
],
|
|
"handler": "taskrun.cancel"
|
|
},
|
|
{
|
|
"id": "demo.greet.hello",
|
|
"domain": "demo",
|
|
"version": 1,
|
|
"matcher": {"includes_any": ["你好"]},
|
|
"priority": 10
|
|
},
|
|
{
|
|
"id": "demo.greet.hi",
|
|
"domain": "demo",
|
|
"version": 1,
|
|
"matcher": {"includes_any": ["你好"]},
|
|
"priority": 5
|
|
},
|
|
{
|
|
"id": "demo.misc.deploy",
|
|
"domain": "demo",
|
|
"version": 1,
|
|
"matcher": {"includes_any": ["deploy", "发布"], "case_sensitive": false},
|
|
"handler": "deploy.run"
|
|
}
|
|
],
|
|
"disable": []
|
|
}
|