Files
Agent-Intent/examples/specs/demo.json
weichen b58595fb38 Implement the intent core
Details (original message):
Implement the intent core, conformance suite, catalog alignment, examples, and the intentctl diagnostics CLI.
2026-09-29 15:35:18 +00:00

29 lines
865 B
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},
"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"
}
]
}