feat: manually mirror opencoze's code from bytedance
Change-Id: I09a73aadda978ad9511264a756b2ce51f5761adf
This commit is contained in:
@@ -0,0 +1,323 @@
|
||||
{
|
||||
"nodes": [
|
||||
{
|
||||
"blocks": [],
|
||||
"data": {
|
||||
"nodeMeta": {
|
||||
"title": "entry"
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "input_array",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "list"
|
||||
},
|
||||
{
|
||||
"name": "batch_concurrency",
|
||||
"required": true,
|
||||
"type": "integer"
|
||||
},
|
||||
{
|
||||
"name": "optional",
|
||||
"required": false,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"trigger_parameters": []
|
||||
},
|
||||
"edges": null,
|
||||
"id": "100001",
|
||||
"meta": {
|
||||
"position": {
|
||||
"x": -10.588288288288288,
|
||||
"y": -166.3
|
||||
}
|
||||
},
|
||||
"type": "1"
|
||||
},
|
||||
{
|
||||
"blocks": [],
|
||||
"data": {
|
||||
"inputs": {
|
||||
"inputParameters": [
|
||||
{
|
||||
"input": {
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "list",
|
||||
"value": {
|
||||
"content": {
|
||||
"blockID": "163658",
|
||||
"name": "USER_RESPONSE_list",
|
||||
"source": "block-output"
|
||||
},
|
||||
"rawMeta": {
|
||||
"type": 99
|
||||
},
|
||||
"type": "ref"
|
||||
}
|
||||
},
|
||||
"name": "output"
|
||||
}
|
||||
],
|
||||
"terminatePlan": "returnVariables"
|
||||
},
|
||||
"nodeMeta": {
|
||||
"title": "exit"
|
||||
}
|
||||
},
|
||||
"edges": null,
|
||||
"id": "900001",
|
||||
"meta": {
|
||||
"position": {
|
||||
"x": 1039.3313063063065,
|
||||
"y": -179.3
|
||||
}
|
||||
},
|
||||
"type": "2"
|
||||
},
|
||||
{
|
||||
"blocks": [
|
||||
{
|
||||
"blocks": [],
|
||||
"data": {
|
||||
"inputs": {
|
||||
"outputSchema": "[{\"type\":\"string\",\"name\":\"input\",\"required\":true}]"
|
||||
},
|
||||
"nodeMeta": {
|
||||
"title": "receiver"
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "input",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
"edges": null,
|
||||
"id": "165663",
|
||||
"meta": {
|
||||
"position": {
|
||||
"x": -180.51644144144146,
|
||||
"y": 76.74533360653558
|
||||
}
|
||||
},
|
||||
"type": "30"
|
||||
},
|
||||
{
|
||||
"blocks": [],
|
||||
"data": {
|
||||
"inputs": {
|
||||
"answer_type": "text",
|
||||
"dynamic_option": {
|
||||
"type": "string",
|
||||
"value": {
|
||||
"content": {
|
||||
"blockID": "",
|
||||
"name": "",
|
||||
"source": "block-output"
|
||||
},
|
||||
"type": "ref"
|
||||
}
|
||||
},
|
||||
"extra_output": false,
|
||||
"inputParameters": [
|
||||
{
|
||||
"input": {
|
||||
"type": "string",
|
||||
"value": {
|
||||
"content": {
|
||||
"blockID": "163658",
|
||||
"name": "input",
|
||||
"source": "block-output"
|
||||
},
|
||||
"rawMeta": {
|
||||
"type": 1
|
||||
},
|
||||
"type": "ref"
|
||||
}
|
||||
},
|
||||
"name": "arr_item"
|
||||
},
|
||||
{
|
||||
"input": {
|
||||
"type": "string",
|
||||
"value": {
|
||||
"content": {
|
||||
"blockID": "165663",
|
||||
"name": "input",
|
||||
"source": "block-output"
|
||||
},
|
||||
"rawMeta": {
|
||||
"type": 1
|
||||
},
|
||||
"type": "ref"
|
||||
}
|
||||
},
|
||||
"name": "user_input"
|
||||
}
|
||||
],
|
||||
"limit": 3,
|
||||
"llmParam": {
|
||||
"generationDiversity": "balance",
|
||||
"maxTokens": 1024,
|
||||
"modelName": "doubao function calling",
|
||||
"modelType": 1706077826,
|
||||
"responseFormat": 2,
|
||||
"systemPrompt": "",
|
||||
"temperature": 1,
|
||||
"topP": 0.7
|
||||
},
|
||||
"option_type": "static",
|
||||
"options": [
|
||||
{
|
||||
"name": ""
|
||||
}
|
||||
],
|
||||
"question": "{{arr_item}} {{user_input}}"
|
||||
},
|
||||
"nodeMeta": {
|
||||
"title": "qa"
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "USER_RESPONSE",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
"edges": null,
|
||||
"id": "197297",
|
||||
"meta": {
|
||||
"position": {
|
||||
"x": 358.2819819819821,
|
||||
"y": 37.74533360653553
|
||||
}
|
||||
},
|
||||
"type": "18"
|
||||
}
|
||||
],
|
||||
"data": {
|
||||
"inputs": {
|
||||
"batchSize": {
|
||||
"type": "integer",
|
||||
"value": {
|
||||
"content": "100",
|
||||
"type": "literal"
|
||||
}
|
||||
},
|
||||
"concurrentSize": {
|
||||
"type": "integer",
|
||||
"value": {
|
||||
"content": {
|
||||
"blockID": "100001",
|
||||
"name": "batch_concurrency",
|
||||
"source": "block-output"
|
||||
},
|
||||
"rawMeta": {
|
||||
"type": 2
|
||||
},
|
||||
"type": "ref"
|
||||
}
|
||||
},
|
||||
"inputParameters": [
|
||||
{
|
||||
"input": {
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "list",
|
||||
"value": {
|
||||
"content": {
|
||||
"blockID": "100001",
|
||||
"name": "input_array",
|
||||
"source": "block-output"
|
||||
},
|
||||
"type": "ref"
|
||||
}
|
||||
},
|
||||
"name": "input"
|
||||
}
|
||||
]
|
||||
},
|
||||
"nodeMeta": {
|
||||
"title": "batch"
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"input": {
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "list",
|
||||
"value": {
|
||||
"content": {
|
||||
"blockID": "197297",
|
||||
"name": "USER_RESPONSE",
|
||||
"source": "block-output"
|
||||
},
|
||||
"rawMeta": {
|
||||
"type": 1
|
||||
},
|
||||
"type": "ref"
|
||||
}
|
||||
},
|
||||
"name": "USER_RESPONSE_list"
|
||||
}
|
||||
]
|
||||
},
|
||||
"edges": [
|
||||
{
|
||||
"sourceNodeID": "163658",
|
||||
"targetNodeID": "165663",
|
||||
"sourcePortID": "batch-function-inline-output"
|
||||
},
|
||||
{
|
||||
"sourceNodeID": "165663",
|
||||
"targetNodeID": "197297",
|
||||
"sourcePortID": ""
|
||||
},
|
||||
{
|
||||
"sourceNodeID": "197297",
|
||||
"targetNodeID": "163658",
|
||||
"sourcePortID": "",
|
||||
"targetPortID": "batch-function-inline-input"
|
||||
}
|
||||
],
|
||||
"id": "163658",
|
||||
"meta": {
|
||||
"canvasPosition": {
|
||||
"x": 389.04110360360346,
|
||||
"y": 88.16987652593423
|
||||
},
|
||||
"position": {
|
||||
"x": 477.92387387387384,
|
||||
"y": -180
|
||||
}
|
||||
},
|
||||
"type": "28"
|
||||
}
|
||||
],
|
||||
"edges": [
|
||||
{
|
||||
"sourceNodeID": "100001",
|
||||
"targetNodeID": "163658",
|
||||
"sourcePortID": ""
|
||||
},
|
||||
{
|
||||
"sourceNodeID": "163658",
|
||||
"targetNodeID": "900001",
|
||||
"sourcePortID": "batch-output"
|
||||
}
|
||||
],
|
||||
"versions": {
|
||||
"loop": "v2",
|
||||
"batch": "v2"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,471 @@
|
||||
{
|
||||
"nodes": [
|
||||
{
|
||||
"blocks": [],
|
||||
"data": {
|
||||
"nodeMeta": {
|
||||
"description": "工作流的起始节点,用于设定启动工作流需要的信息",
|
||||
"icon": "https://lf3-static.bytednsdoc.com/obj/eden-cn/dvsmryvd_avi_dvsm/ljhwZthlaukjlkulzlp/icon/icon-Start-v2.jpg",
|
||||
"subTitle": "",
|
||||
"title": "开始"
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "input",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "list"
|
||||
}
|
||||
],
|
||||
"trigger_parameters": []
|
||||
},
|
||||
"edges": null,
|
||||
"id": "100001",
|
||||
"meta": {
|
||||
"position": {
|
||||
"x": -90.5329099821747,
|
||||
"y": -323.84999999999985
|
||||
}
|
||||
},
|
||||
"type": "1"
|
||||
},
|
||||
{
|
||||
"blocks": [],
|
||||
"data": {
|
||||
"inputs": {
|
||||
"inputParameters": [
|
||||
{
|
||||
"input": {
|
||||
"schema": {
|
||||
"schema": [
|
||||
{
|
||||
"name": "output",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "list"
|
||||
},
|
||||
{
|
||||
"name": "input",
|
||||
"required": false,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"type": "list",
|
||||
"value": {
|
||||
"content": {
|
||||
"blockID": "178876",
|
||||
"name": "outputList",
|
||||
"source": "block-output"
|
||||
},
|
||||
"rawMeta": {
|
||||
"type": 103
|
||||
},
|
||||
"type": "ref"
|
||||
}
|
||||
},
|
||||
"name": "output"
|
||||
}
|
||||
],
|
||||
"terminatePlan": "returnVariables"
|
||||
},
|
||||
"nodeMeta": {
|
||||
"description": "工作流的最终节点,用于返回工作流运行后的结果信息",
|
||||
"icon": "https://lf3-static.bytednsdoc.com/obj/eden-cn/dvsmryvd_avi_dvsm/ljhwZthlaukjlkulzlp/icon/icon-End-v2.jpg",
|
||||
"subTitle": "",
|
||||
"title": "结束"
|
||||
}
|
||||
},
|
||||
"edges": null,
|
||||
"id": "900001",
|
||||
"meta": {
|
||||
"position": {
|
||||
"x": 1209.0861892268267,
|
||||
"y": -336.84999999999985
|
||||
}
|
||||
},
|
||||
"type": "2"
|
||||
},
|
||||
{
|
||||
"blocks": [],
|
||||
"data": {
|
||||
"inputs": {
|
||||
"batch": {
|
||||
"batchEnable": true,
|
||||
"batchSize": 100,
|
||||
"concurrentSize": 10,
|
||||
"inputLists": [
|
||||
{
|
||||
"input": {
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "list",
|
||||
"value": {
|
||||
"content": {
|
||||
"blockID": "100001",
|
||||
"name": "input",
|
||||
"source": "block-output"
|
||||
},
|
||||
"rawMeta": {
|
||||
"type": 99
|
||||
},
|
||||
"type": "ref"
|
||||
}
|
||||
},
|
||||
"name": "item1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"inputParameters": [
|
||||
{
|
||||
"input": {
|
||||
"type": "string",
|
||||
"value": {
|
||||
"content": {
|
||||
"blockID": "180671",
|
||||
"name": "item1",
|
||||
"source": "block-output"
|
||||
},
|
||||
"rawMeta": {
|
||||
"type": 1
|
||||
},
|
||||
"type": "ref"
|
||||
}
|
||||
},
|
||||
"name": "item1"
|
||||
},
|
||||
{
|
||||
"input": {
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "list",
|
||||
"value": {
|
||||
"content": {
|
||||
"blockID": "100001",
|
||||
"name": "input",
|
||||
"source": "block-output"
|
||||
},
|
||||
"rawMeta": {
|
||||
"type": 99
|
||||
},
|
||||
"type": "ref"
|
||||
}
|
||||
},
|
||||
"name": "input_from_entry"
|
||||
}
|
||||
],
|
||||
"llmParam": [
|
||||
{
|
||||
"input": {
|
||||
"type": "integer",
|
||||
"value": {
|
||||
"content": "1737521813",
|
||||
"rawMeta": {
|
||||
"type": 2
|
||||
},
|
||||
"type": "literal"
|
||||
}
|
||||
},
|
||||
"name": "modelType"
|
||||
},
|
||||
{
|
||||
"input": {
|
||||
"type": "string",
|
||||
"value": {
|
||||
"content": "豆包·1.5·Pro·32k",
|
||||
"rawMeta": {
|
||||
"type": 1
|
||||
},
|
||||
"type": "literal"
|
||||
}
|
||||
},
|
||||
"name": "modleName"
|
||||
},
|
||||
{
|
||||
"input": {
|
||||
"type": "string",
|
||||
"value": {
|
||||
"content": "balance",
|
||||
"rawMeta": {
|
||||
"type": 1
|
||||
},
|
||||
"type": "literal"
|
||||
}
|
||||
},
|
||||
"name": "generationDiversity"
|
||||
},
|
||||
{
|
||||
"input": {
|
||||
"type": "float",
|
||||
"value": {
|
||||
"content": "0.8",
|
||||
"rawMeta": {
|
||||
"type": 4
|
||||
},
|
||||
"type": "literal"
|
||||
}
|
||||
},
|
||||
"name": "temperature"
|
||||
},
|
||||
{
|
||||
"input": {
|
||||
"type": "integer",
|
||||
"value": {
|
||||
"content": "4096",
|
||||
"rawMeta": {
|
||||
"type": 2
|
||||
},
|
||||
"type": "literal"
|
||||
}
|
||||
},
|
||||
"name": "maxTokens"
|
||||
},
|
||||
{
|
||||
"input": {
|
||||
"type": "integer",
|
||||
"value": {
|
||||
"content": "0",
|
||||
"rawMeta": {
|
||||
"type": 2
|
||||
},
|
||||
"type": "literal"
|
||||
}
|
||||
},
|
||||
"name": "responseFormat"
|
||||
},
|
||||
{
|
||||
"input": {
|
||||
"type": "string",
|
||||
"value": {
|
||||
"content": "{{item1}}\nall questions:\n{{input}}",
|
||||
"rawMeta": {
|
||||
"type": 1
|
||||
},
|
||||
"type": "literal"
|
||||
}
|
||||
},
|
||||
"name": "prompt"
|
||||
},
|
||||
{
|
||||
"input": {
|
||||
"type": "boolean",
|
||||
"value": {
|
||||
"content": false,
|
||||
"rawMeta": {
|
||||
"type": 3
|
||||
},
|
||||
"type": "literal"
|
||||
}
|
||||
},
|
||||
"name": "enableChatHistory"
|
||||
},
|
||||
{
|
||||
"input": {
|
||||
"type": "integer",
|
||||
"value": {
|
||||
"content": "3",
|
||||
"rawMeta": {
|
||||
"type": 2
|
||||
},
|
||||
"type": "literal"
|
||||
}
|
||||
},
|
||||
"name": "chatHistoryRound"
|
||||
},
|
||||
{
|
||||
"input": {
|
||||
"type": "string",
|
||||
"value": {
|
||||
"content": "",
|
||||
"rawMeta": {
|
||||
"type": 1
|
||||
},
|
||||
"type": "literal"
|
||||
}
|
||||
},
|
||||
"name": "systemPrompt"
|
||||
}
|
||||
],
|
||||
"settingOnError": {
|
||||
"processType": 1,
|
||||
"retryTimes": 0,
|
||||
"timeoutMs": 180000
|
||||
}
|
||||
},
|
||||
"nodeMeta": {
|
||||
"description": "调用大语言模型,使用变量和提示词生成回复",
|
||||
"icon": "https://lf3-static.bytednsdoc.com/obj/eden-cn/dvsmryvd_avi_dvsm/ljhwZthlaukjlkulzlp/icon/icon-LLM-v2.jpg",
|
||||
"mainColor": "#5C62FF",
|
||||
"subTitle": "大模型",
|
||||
"title": "大模型"
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "outputList",
|
||||
"schema": {
|
||||
"schema": [
|
||||
{
|
||||
"name": "output",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"type": "list"
|
||||
}
|
||||
],
|
||||
"version": "3"
|
||||
},
|
||||
"edges": null,
|
||||
"id": "180671",
|
||||
"meta": {
|
||||
"position": {
|
||||
"x": 342.6734564208258,
|
||||
"y": -363.54999999999984
|
||||
}
|
||||
},
|
||||
"type": "3"
|
||||
},
|
||||
{
|
||||
"blocks": [],
|
||||
"data": {
|
||||
"inputs": {
|
||||
"batch": {
|
||||
"batchEnable": true,
|
||||
"batchSize": 100,
|
||||
"concurrentSize": 10,
|
||||
"inputLists": [
|
||||
{
|
||||
"input": {
|
||||
"schema": {
|
||||
"schema": [
|
||||
{
|
||||
"name": "output",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"type": "list",
|
||||
"value": {
|
||||
"content": {
|
||||
"blockID": "180671",
|
||||
"name": "outputList",
|
||||
"source": "block-output"
|
||||
},
|
||||
"rawMeta": {
|
||||
"type": 103
|
||||
},
|
||||
"type": "ref"
|
||||
}
|
||||
},
|
||||
"name": "item1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"inputDefs": [
|
||||
{
|
||||
"input": {},
|
||||
"name": "input",
|
||||
"required": false,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"inputParameters": [
|
||||
{
|
||||
"input": {
|
||||
"type": "string",
|
||||
"value": {
|
||||
"content": {
|
||||
"blockID": "178876",
|
||||
"name": "item1.output",
|
||||
"source": "block-output"
|
||||
},
|
||||
"rawMeta": {
|
||||
"type": 1
|
||||
},
|
||||
"type": "ref"
|
||||
}
|
||||
},
|
||||
"name": "input"
|
||||
}
|
||||
],
|
||||
"settingOnError": {
|
||||
"dataOnErr": "{\n \"outputList\": [\n {\n \"output\": []\n }\n ]\n}",
|
||||
"switch": false
|
||||
},
|
||||
"spaceId": "7309328955423670309",
|
||||
"type": 0,
|
||||
"workflowId": "7469707607914217512",
|
||||
"workflowVersion": "v0.0.1"
|
||||
},
|
||||
"nodeMeta": {
|
||||
"description": "文本处理",
|
||||
"icon": "https://lf3-static.bytednsdoc.com/obj/eden-cn/dvsmryvd_avi_dvsm/ljhwZthlaukjlkulzlp/icon/icon-Workflow-v2.jpg",
|
||||
"isImageflow": false,
|
||||
"title": "text_processing"
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "outputList",
|
||||
"schema": {
|
||||
"schema": [
|
||||
{
|
||||
"name": "output",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "list"
|
||||
},
|
||||
{
|
||||
"name": "input",
|
||||
"required": false,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"type": "list"
|
||||
}
|
||||
]
|
||||
},
|
||||
"edges": null,
|
||||
"id": "178876",
|
||||
"meta": {
|
||||
"position": {
|
||||
"x": 775.8798228238263,
|
||||
"y": -337.54999999999984
|
||||
}
|
||||
},
|
||||
"type": "9"
|
||||
}
|
||||
],
|
||||
"edges": [
|
||||
{
|
||||
"sourceNodeID": "100001",
|
||||
"targetNodeID": "180671",
|
||||
"sourcePortID": ""
|
||||
},
|
||||
{
|
||||
"sourceNodeID": "178876",
|
||||
"targetNodeID": "900001",
|
||||
"sourcePortID": ""
|
||||
},
|
||||
{
|
||||
"sourceNodeID": "180671",
|
||||
"targetNodeID": "178876",
|
||||
"sourcePortID": ""
|
||||
}
|
||||
],
|
||||
"versions": {
|
||||
"loop": "v2"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,259 @@
|
||||
{
|
||||
"nodes": [
|
||||
{
|
||||
"blocks": [],
|
||||
"data": {
|
||||
"nodeMeta": {
|
||||
"description": "工作流的起始节点,用于设定启动工作流需要的信息",
|
||||
"icon": "https://lf3-static.bytednsdoc.com/obj/eden-cn/dvsmryvd_avi_dvsm/ljhwZthlaukjlkulzlp/icon/icon-Start-v2.jpg",
|
||||
"subTitle": "",
|
||||
"title": "开始"
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "input",
|
||||
"required": false,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"trigger_parameters": [
|
||||
{
|
||||
"name": "input",
|
||||
"required": false,
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
"edges": null,
|
||||
"id": "100001",
|
||||
"meta": {
|
||||
"canvasPosition": {
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"defaultCollapsed": false,
|
||||
"position": {
|
||||
"x": 0,
|
||||
"y": 0
|
||||
}
|
||||
},
|
||||
"type": "1"
|
||||
},
|
||||
{
|
||||
"blocks": [],
|
||||
"data": {
|
||||
"inputs": {
|
||||
"inputParameters": [
|
||||
{
|
||||
"input": {
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "list",
|
||||
"value": {
|
||||
"content": {
|
||||
"blockID": "192899",
|
||||
"name": "output",
|
||||
"source": "block-output"
|
||||
},
|
||||
"type": "ref"
|
||||
}
|
||||
},
|
||||
"name": "output"
|
||||
},
|
||||
{
|
||||
"input": {
|
||||
"type": "string",
|
||||
"value": {
|
||||
"content": {
|
||||
"blockID": "100001",
|
||||
"name": "input",
|
||||
"source": "block-output"
|
||||
},
|
||||
"rawMeta": {
|
||||
"type": 1
|
||||
},
|
||||
"type": "ref"
|
||||
}
|
||||
},
|
||||
"name": "input"
|
||||
}
|
||||
],
|
||||
"terminatePlan": "returnVariables"
|
||||
},
|
||||
"nodeMeta": {
|
||||
"description": "工作流的最终节点,用于返回工作流运行后的结果信息",
|
||||
"icon": "https://lf3-static.bytednsdoc.com/obj/eden-cn/dvsmryvd_avi_dvsm/ljhwZthlaukjlkulzlp/icon/icon-End-v2.jpg",
|
||||
"subTitle": "",
|
||||
"title": "结束"
|
||||
}
|
||||
},
|
||||
"edges": null,
|
||||
"id": "900001",
|
||||
"meta": {
|
||||
"canvasPosition": {
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"defaultCollapsed": false,
|
||||
"position": {
|
||||
"x": 993,
|
||||
"y": -12.999999999999986
|
||||
}
|
||||
},
|
||||
"type": "2"
|
||||
},
|
||||
{
|
||||
"blocks": [],
|
||||
"data": {
|
||||
"inputs": {
|
||||
"inputParameters": [
|
||||
{
|
||||
"input": {
|
||||
"type": "string",
|
||||
"value": {
|
||||
"content": {
|
||||
"blockID": "100001",
|
||||
"name": "input",
|
||||
"source": "block-output"
|
||||
},
|
||||
"rawMeta": {
|
||||
"type": 1
|
||||
},
|
||||
"type": "ref"
|
||||
}
|
||||
},
|
||||
"name": "String"
|
||||
}
|
||||
],
|
||||
"method": "split",
|
||||
"splitParams": [
|
||||
{
|
||||
"input": {
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "list",
|
||||
"value": {
|
||||
"content": [
|
||||
"。",
|
||||
","
|
||||
],
|
||||
"type": "literal"
|
||||
}
|
||||
},
|
||||
"name": "delimiters"
|
||||
},
|
||||
{
|
||||
"input": {
|
||||
"schema": {
|
||||
"schema": [
|
||||
{
|
||||
"name": "label",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "value",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "isDefault",
|
||||
"required": true,
|
||||
"type": "boolean"
|
||||
}
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"type": "list",
|
||||
"value": {
|
||||
"content": [
|
||||
{
|
||||
"isDefault": true,
|
||||
"label": "换行",
|
||||
"value": "\n"
|
||||
},
|
||||
{
|
||||
"isDefault": true,
|
||||
"label": "制表符",
|
||||
"value": "\t"
|
||||
},
|
||||
{
|
||||
"isDefault": true,
|
||||
"label": "句号",
|
||||
"value": "。"
|
||||
},
|
||||
{
|
||||
"isDefault": true,
|
||||
"label": "逗号",
|
||||
"value": ","
|
||||
},
|
||||
{
|
||||
"isDefault": true,
|
||||
"label": "分号",
|
||||
"value": ";"
|
||||
},
|
||||
{
|
||||
"isDefault": true,
|
||||
"label": "空格",
|
||||
"value": " "
|
||||
}
|
||||
],
|
||||
"type": "literal"
|
||||
}
|
||||
},
|
||||
"name": "allDelimiters"
|
||||
}
|
||||
]
|
||||
},
|
||||
"nodeMeta": {
|
||||
"description": "用于处理多个字符串类型变量的格式",
|
||||
"icon": "https://lf3-static.bytednsdoc.com/obj/eden-cn/dvsmryvd_avi_dvsm/ljhwZthlaukjlkulzlp/icon/icon-StrConcat-v2.jpg",
|
||||
"mainColor": "#3071F2",
|
||||
"subTitle": "文本处理",
|
||||
"title": "文本处理"
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "output",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "list"
|
||||
}
|
||||
]
|
||||
},
|
||||
"edges": null,
|
||||
"id": "192899",
|
||||
"meta": {
|
||||
"canvasPosition": {
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"defaultCollapsed": false,
|
||||
"position": {
|
||||
"x": 491.5,
|
||||
"y": -13.949999999999989
|
||||
}
|
||||
},
|
||||
"type": "15"
|
||||
}
|
||||
],
|
||||
"edges": [
|
||||
{
|
||||
"sourceNodeID": "100001",
|
||||
"targetNodeID": "192899",
|
||||
"sourcePortID": ""
|
||||
},
|
||||
{
|
||||
"sourceNodeID": "192899",
|
||||
"targetNodeID": "900001",
|
||||
"sourcePortID": ""
|
||||
}
|
||||
],
|
||||
"versions": {
|
||||
"loop": "v2"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user