Why: The example plugin needs a bound intent and a plugin-shipped script so the three P4 paths can be checked against a real plugin. Evidence: TestRepoExamplePluginLoads accepts the plugin, asks 主题是什么?, and keeps the topic slot. Impact: demo.brief starts the five-step workflow. demo.script stays unbound and needs runtime.workflowScripts. Refs: feature/agent-harness-p4 Co-authored-by: Cursor <cursoragent@cursor.com>
26 lines
680 B
JSON
26 lines
680 B
JSON
[
|
||
{
|
||
"id": "demo.show",
|
||
"domain": "demo",
|
||
"version": 1,
|
||
"description": "示例意图:命中『示例/演示』关键词(slots 声明即 HITL 该问什么;本示例无必填槽位)",
|
||
"matcher": { "includes_any": ["示例", "演示"] },
|
||
"slots": []
|
||
},
|
||
{
|
||
"id": "demo.brief",
|
||
"domain": "demo",
|
||
"version": 1,
|
||
"description": "写一份简报。必填槽位 topic,没写就问「主题是什么?」。",
|
||
"matcher": { "includes_any": ["简报"] },
|
||
"slots": [
|
||
{
|
||
"key": "topic",
|
||
"required": true,
|
||
"pattern": "主题[::]\\s*(\\S+)",
|
||
"question": "主题是什么?"
|
||
}
|
||
]
|
||
}
|
||
]
|