320 lines
7.9 KiB
JSON
320 lines
7.9 KiB
JSON
{
|
|
"nodes": [
|
|
{
|
|
"nodeId": "userGuide",
|
|
"name": "系统配置",
|
|
"intro": "",
|
|
"avatar": "core/workflow/template/systemConfig",
|
|
"flowNodeType": "userGuide",
|
|
"position": {
|
|
"x": 531.2422736065552,
|
|
"y": -486.7611729549753
|
|
},
|
|
"version": "481",
|
|
"inputs": [],
|
|
"outputs": []
|
|
},
|
|
{
|
|
"nodeId": "workflowStartNodeId",
|
|
"name": "流程开始",
|
|
"intro": "",
|
|
"avatar": "core/workflow/template/workflowStart",
|
|
"flowNodeType": "workflowStart",
|
|
"position": {
|
|
"x": 531.2422736065552,
|
|
"y": 244.69591764653183
|
|
},
|
|
"version": "481",
|
|
"inputs": [
|
|
{
|
|
"key": "userChatInput",
|
|
"renderTypeList": [
|
|
"reference",
|
|
"textarea"
|
|
],
|
|
"valueType": "string",
|
|
"label": "workflow:user_question",
|
|
"toolDescription": "用户问题",
|
|
"required": true,
|
|
"debugLabel": ""
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"id": "userChatInput",
|
|
"key": "userChatInput",
|
|
"label": "common:core.module.input.label.user question",
|
|
"type": "static",
|
|
"valueType": "string",
|
|
"description": ""
|
|
},
|
|
{
|
|
"id": "userFiles",
|
|
"key": "userFiles",
|
|
"label": "app:workflow.user_file_input",
|
|
"description": "app:workflow.user_file_input_desc",
|
|
"type": "static",
|
|
"valueType": "arrayString"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nodeId": "7BdojPlukIQw",
|
|
"name": "AI 对话",
|
|
"intro": "AI 大模型对话",
|
|
"avatar": "core/workflow/template/aiChat",
|
|
"flowNodeType": "chatNode",
|
|
"showStatus": true,
|
|
"position": {
|
|
"x": 1106.3238387960757,
|
|
"y": -350.6030674683474
|
|
},
|
|
"version": "4813",
|
|
"inputs": [
|
|
{
|
|
"key": "model",
|
|
"renderTypeList": [
|
|
"settingLLMModel",
|
|
"reference"
|
|
],
|
|
"label": "",
|
|
"valueType": "string",
|
|
"value": "deepseek-reasoner",
|
|
"debugLabel": "",
|
|
"toolDescription": ""
|
|
},
|
|
{
|
|
"key": "temperature",
|
|
"renderTypeList": [
|
|
"hidden"
|
|
],
|
|
"label": "",
|
|
"value": 0,
|
|
"valueType": "number",
|
|
"min": 0,
|
|
"max": 10,
|
|
"step": 1,
|
|
"debugLabel": "",
|
|
"toolDescription": ""
|
|
},
|
|
{
|
|
"key": "maxToken",
|
|
"renderTypeList": [
|
|
"hidden"
|
|
],
|
|
"label": "",
|
|
"value": 8000,
|
|
"valueType": "number",
|
|
"min": 100,
|
|
"max": 4000,
|
|
"step": 50,
|
|
"debugLabel": "",
|
|
"toolDescription": ""
|
|
},
|
|
{
|
|
"key": "isResponseAnswerText",
|
|
"renderTypeList": [
|
|
"hidden"
|
|
],
|
|
"label": "",
|
|
"value": true,
|
|
"valueType": "boolean",
|
|
"debugLabel": "",
|
|
"toolDescription": ""
|
|
},
|
|
{
|
|
"key": "aiChatQuoteRole",
|
|
"renderTypeList": [
|
|
"hidden"
|
|
],
|
|
"label": "",
|
|
"valueType": "string",
|
|
"value": "system",
|
|
"debugLabel": "",
|
|
"toolDescription": ""
|
|
},
|
|
{
|
|
"key": "quoteTemplate",
|
|
"renderTypeList": [
|
|
"hidden"
|
|
],
|
|
"label": "",
|
|
"valueType": "string",
|
|
"debugLabel": "",
|
|
"toolDescription": ""
|
|
},
|
|
{
|
|
"key": "quotePrompt",
|
|
"renderTypeList": [
|
|
"hidden"
|
|
],
|
|
"label": "",
|
|
"valueType": "string",
|
|
"debugLabel": "",
|
|
"toolDescription": ""
|
|
},
|
|
{
|
|
"key": "aiChatVision",
|
|
"renderTypeList": [
|
|
"hidden"
|
|
],
|
|
"label": "",
|
|
"valueType": "boolean",
|
|
"value": true,
|
|
"debugLabel": "",
|
|
"toolDescription": ""
|
|
},
|
|
{
|
|
"key": "aiChatReasoning",
|
|
"renderTypeList": [
|
|
"hidden"
|
|
],
|
|
"label": "",
|
|
"valueType": "boolean",
|
|
"value": true,
|
|
"debugLabel": "",
|
|
"toolDescription": ""
|
|
},
|
|
{
|
|
"key": "systemPrompt",
|
|
"renderTypeList": [
|
|
"textarea",
|
|
"reference"
|
|
],
|
|
"max": 3000,
|
|
"valueType": "string",
|
|
"label": "core.ai.Prompt",
|
|
"description": "core.app.tip.systemPromptTip",
|
|
"placeholder": "core.app.tip.chatNodeSystemPromptTip",
|
|
"value": "",
|
|
"debugLabel": "",
|
|
"toolDescription": ""
|
|
},
|
|
{
|
|
"key": "history",
|
|
"renderTypeList": [
|
|
"numberInput",
|
|
"reference"
|
|
],
|
|
"valueType": "chatHistory",
|
|
"label": "core.module.input.label.chat history",
|
|
"required": true,
|
|
"min": 0,
|
|
"max": 50,
|
|
"value": 6,
|
|
"description": "workflow:max_dialog_rounds",
|
|
"debugLabel": "",
|
|
"toolDescription": ""
|
|
},
|
|
{
|
|
"key": "quoteQA",
|
|
"renderTypeList": [
|
|
"settingDatasetQuotePrompt"
|
|
],
|
|
"label": "",
|
|
"debugLabel": "知识库引用",
|
|
"description": "",
|
|
"valueType": "datasetQuote",
|
|
"toolDescription": ""
|
|
},
|
|
{
|
|
"key": "fileUrlList",
|
|
"renderTypeList": [
|
|
"reference",
|
|
"input"
|
|
],
|
|
"label": "app:file_quote_link",
|
|
"debugLabel": "文件链接",
|
|
"valueType": "arrayString",
|
|
"value": [
|
|
[
|
|
"workflowStartNodeId",
|
|
"userFiles"
|
|
]
|
|
],
|
|
"toolDescription": ""
|
|
},
|
|
{
|
|
"key": "userChatInput",
|
|
"renderTypeList": [
|
|
"reference",
|
|
"textarea"
|
|
],
|
|
"valueType": "string",
|
|
"label": "common:core.module.input.label.user question",
|
|
"required": true,
|
|
"toolDescription": "用户问题",
|
|
"value": [
|
|
"workflowStartNodeId",
|
|
"userChatInput"
|
|
],
|
|
"debugLabel": ""
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"id": "history",
|
|
"key": "history",
|
|
"required": true,
|
|
"label": "common:core.module.output.label.New context",
|
|
"description": "将本次回复内容拼接上历史记录,作为新的上下文返回",
|
|
"valueType": "chatHistory",
|
|
"valueDesc": "{\n obj: System | Human | AI;\n value: string;\n}[]",
|
|
"type": "static"
|
|
},
|
|
{
|
|
"id": "answerText",
|
|
"key": "answerText",
|
|
"required": true,
|
|
"label": "common:core.module.output.label.Ai response content",
|
|
"description": "将在 stream 回复完毕后触发",
|
|
"valueType": "string",
|
|
"type": "static"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"edges": [
|
|
{
|
|
"source": "workflowStartNodeId",
|
|
"target": "7BdojPlukIQw",
|
|
"sourceHandle": "workflowStartNodeId-source-right",
|
|
"targetHandle": "7BdojPlukIQw-target-left"
|
|
}
|
|
],
|
|
"chatConfig": {
|
|
"questionGuide": false,
|
|
"ttsConfig": {
|
|
"type": "web"
|
|
},
|
|
"whisperConfig": {
|
|
"open": false,
|
|
"autoSend": false,
|
|
"autoTTSResponse": false
|
|
},
|
|
"scheduledTriggerConfig": {
|
|
"cronString": "",
|
|
"timezone": "Asia/Shanghai",
|
|
"defaultPrompt": ""
|
|
},
|
|
"chatInputGuide": {
|
|
"open": false,
|
|
"textList": [],
|
|
"customUrl": ""
|
|
},
|
|
"instruction": "",
|
|
"autoExecute": {
|
|
"open": false,
|
|
"defaultPrompt": ""
|
|
},
|
|
"welcomeText": "",
|
|
"variables": [],
|
|
"fileSelectConfig": {
|
|
"canSelectFile": false,
|
|
"canSelectImg": false,
|
|
"maxFiles": 10
|
|
},
|
|
"_id": "66f4c2f5e9e4e93a95141004"
|
|
}
|
|
}
|