Files
skill-template/assets/examples/stream-ask.action.example.json
chendelian d911bd28cd
All checks were successful
技能自动化发布 / release (push) Successful in 6s
Release v1.0.127: document executionProfile stream for HTML token streaming
2026-10-25 18:22:25 +08:00

31 lines
1.2 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"_comment": "形状参考:页内 LLM/长生成流式。executionProfile=stream → 宿主建 Job 但不进任务中心主路径;HTML 用 jiangchang.stream;技能侧 platform-kit>=1.2.14 的 activity.stream_channel → Journal stream_delta;终态仍 finish/finish_success 打出完整 JSON。契约见 references/ACTIONS.md「executionProfile」与「页面调用」、development/SKILL_ACTION_RUNTIME.md §2。模板自带 health/version 仍用 sync,勿默认改成 stream。",
"schemaVersion": 1,
"skill": "your-skill-slug",
"actions": [
{
"id": "ask",
"label": "智能问答",
"description": "根据本地知识检索后回答问题;在数据管理 HTML 页内流式输出。",
"placements": ["skill-detail", "agent"],
"executionProfile": "stream",
"inputSchema": {
"type": "object",
"required": ["question"],
"properties": {
"question": {
"type": "string",
"title": "问题",
"description": "用户自然语言问题"
}
}
},
"entrypoint": {
"type": "cli",
"command": "ask",
"args": ["--question", "{{question}}"]
}
}
]
}