Release v1.0.127: document executionProfile stream for HTML token streaming
All checks were successful
技能自动化发布 / release (push) Successful in 6s
All checks were successful
技能自动化发布 / release (push) Successful in 6s
This commit is contained in:
30
assets/examples/stream-ask.action.example.json
Normal file
30
assets/examples/stream-ask.action.example.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"_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}}"]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user