53 lines
2.2 KiB
JSON
53 lines
2.2 KiB
JSON
{
|
||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||
"$id": "aps://shared/intent",
|
||
"title": "IntentResult",
|
||
"description": "意图识别结果:两级管线(规则快路/LLM)的统一输出(plan.md §9.6)。LLM 输出必须符合此 Schema,否则降级。",
|
||
"type": "object",
|
||
"required": ["intent", "confidence"],
|
||
"properties": {
|
||
"intent": {
|
||
"description": "意图名(M1 子集)",
|
||
"type": "string",
|
||
"enum": [
|
||
"schedule.run",
|
||
"schedule.publish",
|
||
"order.upsert",
|
||
"order.cancel",
|
||
"order.complete",
|
||
"scenario.compare",
|
||
"knowledge.query",
|
||
"report.generate",
|
||
"checkpoint.create",
|
||
"checkpoint.rollback",
|
||
"viewport.mode",
|
||
"viewport.filter",
|
||
"viewport.focus",
|
||
"viewport.highlight",
|
||
"viewport.timescale",
|
||
"viewport.reset",
|
||
"query.kpi",
|
||
"data.reset",
|
||
"help",
|
||
"unknown"
|
||
]
|
||
},
|
||
"params": {
|
||
"description": "槽位参数(按意图而异)",
|
||
"type": "object",
|
||
"properties": {
|
||
"strategy": { "description": "排产策略模板", "type": "string", "enum": ["DELIVERY_FIRST", "CAPACITY_BALANCE", "COST_FIRST", "FIFO", "COMPREHENSIVE"] },
|
||
"engine": { "description": "引擎类型(M1 仅 RULE 真实现,其余映射为 RULE+提示)", "type": "string", "enum": ["RULE", "CP", "GA", "HYBRID"] },
|
||
"mode": { "description": "视图模式", "type": "string", "enum": ["gantt", "load", "due"] },
|
||
"type": { "description": "过滤类型", "type": "string", "enum": ["vip", "customer"] },
|
||
"name": { "description": "过滤客户名", "type": "string" },
|
||
"lineCode": { "description": "聚焦产线编码(如 L001)", "type": "string" },
|
||
"what": { "description": "高亮目标", "type": "string", "enum": ["overdue", "conflict"] },
|
||
"scale": { "description": "时间粒度", "type": "string", "enum": ["day", "hour"] }
|
||
}
|
||
},
|
||
"confidence": { "description": "置信度 0-1:<0.5 拒识,0.5-0.85 需澄清,>0.85 直接执行", "type": "number", "minimum": 0, "maximum": 1 },
|
||
"source": { "description": "产生来源:规则快路 / LLM", "type": "string", "enum": ["RULE_FAST", "LLM"] }
|
||
}
|
||
}
|