Start 节点(type = "start")
用于定义工作流的输入 Schema。
Schema
- 参考: StartNode.json
- 核心字段:
data.outputs:JSON Schema,描述工作流可用的输入字段
典型用法
- 执行接口会把请求体映射进 Start 的 outputs 字段对应的上下文
- 后续节点通过
ref语法访问(例如["start_0", "query"])
示例
Start → End 的最小工作流(接收 query,直接作为 result 输出):
{
"id": "minimal",
"apiKey": "minimal",
"name": "Minimal Workflow",
"nodes": [
{
"id": "start_0",
"type": "start",
"meta": { "position": { "x": 180, "y": 200 } },
"data": {
"title": "Start",
"outputs": {
"type": "object",
"properties": {
"query": { "type": "string" }
}
}
}
},
{
"id": "end_0",
"type": "end",
"meta": { "position": { "x": 600, "y": 200 } },
"data": {
"title": "End",
"inputs": {
"type": "object",
"properties": {
"result": { "type": "string" }
}
},
"inputsValues": {
"result": { "type": "ref", "content": ["start_0", "query"] }
}
}
}
],
"edges": [
{ "sourceNodeID": "start_0", "targetNodeID": "end_0" }
]
}